Skip to content

chore: migrate to AGP 9.1.1 and Gradle 9.3.1#697

Merged
bmc08gt merged 1 commit into
code/cashfrom
chore/agp-9.1.1-migration
May 11, 2026
Merged

chore: migrate to AGP 9.1.1 and Gradle 9.3.1#697
bmc08gt merged 1 commit into
code/cashfrom
chore/agp-9.1.1-migration

Conversation

@bmc08gt
Copy link
Copy Markdown
Collaborator

@bmc08gt bmc08gt commented May 11, 2026

  • 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.

- 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>
@bmc08gt bmc08gt self-assigned this May 11, 2026
@github-actions github-actions Bot added type: chore Maintenance, config, CI/CD area: build-system Gradle, convention plugins, build-logic and removed type: chore Maintenance, config, CI/CD labels May 11, 2026
@bmc08gt bmc08gt merged commit a669828 into code/cash May 11, 2026
3 checks passed
@bmc08gt bmc08gt deleted the chore/agp-9.1.1-migration branch May 11, 2026 20:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: build-system Gradle, convention plugins, build-logic

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant