chore(deps): upgrade to AGP 9 / Kotlin 2.3 / Compose BOM 2026.03#29
Merged
Conversation
Bring the whole dependency set forward ~15 months: - AGP 8.7.3 → 9.1.1 (requires Gradle 9.3+, compileSdk 36+) - Gradle wrapper 8.10.2 → 9.4.1 - Kotlin 2.1.0 → 2.3.20, KSP 2.1.0-1.0.29 → 2.3.6 - Hilt 2.53.1 → 2.59.2 - Compose BOM 2024.12.01 → 2026.03.01 (Material3 1.4.0) - Lifecycle 2.8.7 → 2.10.0, Navigation 2.8.5 → 2.9.7 - Activity Compose 1.9.3 → 1.13.0, Core KTX 1.15.0 → 1.18.0 - DataStore 1.1.1 → 1.2.1 - kotlinx-serialization 1.7.3 → 1.11.0 - compileSdk / targetSdk 35 → 36 AGP 9 structural changes: - Remove org.jetbrains.kotlin.android plugin (built in to AGP 9) - Drop android.kotlinOptions DSL (no longer available); JVM target flows from compileOptions Hilt Nav Compose 1.3.0: hiltViewModel() moved to a dedicated artifact without a transitive navigation dependency. Swap the four call sites to androidx.hilt.lifecycle.viewmodel.compose.hiltViewModel and add the new hilt-lifecycle-viewmodel-compose dependency to :app and :feature:timer. Opt in to the upcoming Kotlin annotation-default-target behaviour via -Xannotation-default-target=param-property in all Android modules, silencing KT-73255 warnings on @Inject / @stringres constructor params. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
# Conflicts: # app/build.gradle.kts
…rceValueCall Compose UI 1.10 promoted this check from hint to error: calling Context.getString() from inside a Composable does not invalidate on configuration changes, so stale translations can leak. Move the five affected lookups (screen admin description + three Shizuku feature labels + soft-screen-off explanation) to stringResource() at the composable scope and capture the resulting Strings in the surrounding lambdas. SettingsScreen no longer needs LocalContext.current; drop the val and its import. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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.
Summary
kotlin-androidplugin (Kotlin is now built in) and remove theandroid.kotlinOptionsDSL.hiltViewModel()(4 call sites) to the newandroidx.hilt:hilt-lifecycle-viewmodel-composeartifact required by Hilt Nav Compose 1.3.0.-Xannotation-default-target=param-property) to resolve KT-73255 warnings on@Inject/@StringResconstructor params.Test plan
./gradlew assembleDebug— green, zero warningsemulator-5554— app starts, MainActivity rendersPOST_NOTIFICATIONSprompt appears on first timer start (targetSdk 36)🤖 Generated with Claude Code