Skip to content

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

Merged
BartoszLitwiniuk merged 14 commits into
masterfrom
feature/agp_9.3.1
Aug 31, 2026
Merged

chore(deps): upgrade to AGP 9.3.1 and Gradle 9.5#219
BartoszLitwiniuk merged 14 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.2 (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.2 (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
  • Update Java in publishing pipeline to v21

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

CI pipeline

  • Update Java in CI pipeline to v21

@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
Bartosz Litwiniuk and others added 3 commits August 17, 2026 07:34
Comment thread backtrace-library/build.gradle Outdated
Comment thread backtrace-library/build.gradle
Comment thread backtrace-library/build.gradle
Comment thread backtrace-library/build.gradle
@BartoszLitwiniuk
BartoszLitwiniuk merged commit 75039b4 into master Aug 31, 2026
11 checks passed
@BartoszLitwiniuk
BartoszLitwiniuk deleted the feature/agp_9.3.1 branch August 31, 2026 06:13
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.

3 participants