Repository navigation
build: upgrade to AGP 9.5.0, Gradle 9.8.2, Kotlin 2.4.21 - #248
Open
dipenpradhan wants to merge 1 commit into
Open
dipenpradhan wants to merge 1 commit into
dipenpradhan wants to merge 1 commit into
Conversation
dipenpradhan
force-pushed
the
upgrade-1-toolchain
branch
from
November 1, 2026 17:27
ee2dc28 to
ac0e6fc
Compare
- Bump Gradle wrapper to 9.8.2
- Bump AGP to 9.5.0, Kotlin to 2.4.21 (Compose Compiler plugin tracks Kotlin)
- Bump KSP to 2.3.13 (versioned independently of Kotlin since 2.2)
- Adopt AGP 9 built-in Kotlin: drop org.jetbrains.kotlin.android plugin
- Migrate kotlinOptions/ freeCompilerArgs opt-ins to the top-level
kotlin { compilerOptions } DSL
- Remove targetSdk from library defaultConfig (removed in AGP 9)
- Bump Roborazzi to 1.66.0 for AGP 9 compatibility (1.77.0 needs a newer
Compose runtime than this BOM); the BOM commit moves Roborazzi to 1.77.0
- Compose BOM stays on 2024.12.01 until the BOM upgrade commit
- ktfmt-gradle 0.22.0 -> 0.27.0: 0.22.0 only registered its per-source-set
check/format tasks when the kotlin-android plugin was applied, which AGP 9
built-in Kotlin no longer is, so ktfmtCheck silently checked nothing. 0.27.0
(AGP 9.x support) discovers source sets from the common extension instead.
The stricter formatter (ktfmt 0.64) re-wraps a handful of >100-char lines in
this commit so ktfmtCheck passes again.
./gradlew build, ktfmtCheck and unit tests are green
dipenpradhan
force-pushed
the
upgrade-1-toolchain
branch
from
November 1, 2026 23:32
ac0e6fc to
94fea14
Compare
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.
Part of #236. First of two stacked PRs (this one, then the Compose BOM upgrade on top).
What
gradle-wrapper.jarmatches the official 9.8.2 checksum3b8a2577…e98).org.jetbrains.kotlin.androidplugin is removed from the app, the buildSrc convention scripts anddemos/cryptoapp.kotlinOptionsmoved to the top-levelkotlin { compilerOptions { … } }DSL; JVM targets unchanged (libraries 17, app 1.8 in this PR).targetSdkremoved from librarydefaultConfig(removed for libraries in AGP 9; the app keeps it).TestedExtension).Why
Compose 1.12 (BOM 2026.09.00) requires AGP 9.1.0+ and compileSdk 37, so the toolchain has to move first.
Testing
./gradlew clean build testDebugUnitTest --continue --no-build-cacheon this commit alone: BUILD SUCCESSFUL, 16/16 unit tests, 0 lint errors../gradlew ktfmtCheck: green.