chore: migrate to AGP 9.1.1 and Gradle 9.3.1#697
Merged
Conversation
- Upgrade AGP from 8.9.3 to 9.1.1 and Gradle wrapper from 8.11.1 to 9.3.1 - Remove de.nanogiants.android-versioning plugin (incompatible with Gradle 9 due to removed convention API); replace with inline gitVersionCode() using providers.exec for the same git rev-list --count HEAD logic - Fix OpenCV proguard: use proguard-android-optimize.txt (AGP 9 removed support for the non-optimize variant) - Move resValues = true from global gradle.properties into the app module buildFeatures block (the global default property is deprecated) - Remove deprecated gradle.properties options no longer recognized: android.sdk.defaultTargetSdkToCompileSdkIfUnset, android.enableAppCompileTimeRClass, android.usesSdkInManifest.disallowed, android.r8.optimizedResourceShrinking Remaining deprecated options kept intentionally: - android.builtInKotlin=false and android.newDsl=false opt out of AGP 9 built-in Kotlin support. Removing them requires dropping org.jetbrains.kotlin.android from all 100+ modules and migrating to AGP built-in Kotlin compilation — planned as a follow-up. Signed-off-by: Brandon McAnsh <git@bmcreations.dev>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Remaining deprecated options kept intentionally: