Skip to content

chore(deps): upgrade to AGP 9.3.1 and Gradle 9.5 - #219

Open
BartoszLitwiniuk wants to merge 7 commits into
masterfrom
feature/agp_9.3.1
Open

chore(deps): upgrade to AGP 9.3.1 and Gradle 9.5#219
BartoszLitwiniuk wants to merge 7 commits into
masterfrom
feature/agp_9.3.1

Conversation

@BartoszLitwiniuk

@BartoszLitwiniuk BartoszLitwiniuk commented Aug 11, 2026

Copy link
Copy Markdown
Collaborator

Should be merged after #217

Summary

Upgrades the build toolchain to Android Gradle Plugin 9.3.1 (from 8.11.1) and Gradle 9.5.0 (from 8.14.3), migrating the build scripts to the DSL APIs required by AGP 9.

Changes

Toolchain

  • AGP 8.11.19.3.1 (root build.gradle classpath and settings.gradle plugin declarations)
  • Gradle wrapper 8.14.39.5.0
  • Enable org.gradle.tooling.parallel

DSL migration (required by AGP 9)

  • Convert android {} block assignments to property syntax (namespace =, minSdk =, versionCode =, …)
  • Move compileSdk out of defaultConfig to the android {} block
  • Replace removed lintOptions {} with lint {}, and declare targetSdk under lint {} / testOptions {} in the library module (targetSdk is no longer valid in a library's defaultConfig)
  • Replace testCoverageEnabled with enableUnitTestCoverage / enableAndroidTestCoverage
  • Fix a pre-existing nesting bug in backtrace-library/build.gradle where buildTypes was declared inside itself, so the debug coverage config never applied
  • Flatten the redundant nested android {} / defaultConfig {} blocks in example-app/build.gradle

Publishing

  • Capture androidGitVersion.name() into libVersion and use it for the Maven coordinates, since android.defaultConfig.versionName is no longer readable at configuration time for library modules

ProGuard

  • Switch the example app to proguard-android-optimize.txt to silence a build warning
  • Library release build now uses proguard-android-optimize.txt instead of proguard-android.txt

@BartoszLitwiniuk BartoszLitwiniuk changed the title Feature/agp 9.3.1 Upgrade to AGP 9.3.1 and Gradle 9.5 Aug 11, 2026
@BartoszLitwiniuk BartoszLitwiniuk changed the title Upgrade to AGP 9.3.1 and Gradle 9.5 chore(deps): upgrade to AGP 9.3.1 and Gradle 9.5 Aug 11, 2026
@BartoszLitwiniuk
BartoszLitwiniuk marked this pull request as draft August 11, 2026 21:03
@BartoszLitwiniuk
BartoszLitwiniuk marked this pull request as ready for review August 12, 2026 19:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant