-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Specify export flag for Context-based receiver #72
Conversation
working_directory: ~/deploygate-android-sdk | ||
environment: | ||
GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError" -Dorg.gradle.daemon=false' | ||
GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx2048m -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError" -Dorg.gradle.daemon=false' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MaxPermSize is no longer valid for JVM 9 or later
} | ||
dependencies { | ||
classpath 'com.android.tools.build:gradle:4.2.2' | ||
classpath 'com.akaita.android:easylauncher:1.3.1' | ||
classpath 'com.android.tools.build:gradle:7.4.2' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To use Android SDK 33
|
||
testImplementation 'androidx.test:rules:1.2.0' | ||
testImplementation 'androidx.test:rules:1.5.0' | ||
testImplementation 'com.google.truth:truth:1.0' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
truth:1.1.4 is now available. how about it updating?
see: https://truth.dev/
testImplementation 'com.google.truth:truth:1.0' | |
testImplementation 'com.google.truth:truth:1.1.4' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@satsukies
Please make a new PR. These updates are just for Android 14 SDK and JVM changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jmatsu
I see. My comment was off the maintain of PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
Thank you so much! |
This feature has been introduced since Android 13 SDK (https://developer.android.com/about/versions/13/features#runtime-receivers) and it's now required for apps that target Android 14 or later (https://developer.android.com/about/versions/14/behavior-changes-14#runtime-receivers-exported).
See the implementation of ContextCompat for the verification. https://cs.android.com/androidx/platform/frameworks/support/+/androidx-main:core/core/src/main/java/androidx/core/content/ContextCompat.java;drc=b63ff8c4299a6486bf34ec2ac746517e2d378d43