Skip to content

Bump compileSdk/targetSdk to 35 (Android 15), AGP 8.7.3, Gradle 8.9#197

Open
dipenpradhan wants to merge 4 commits into
Gurupreet:masterfrom
dipenpradhan:issue-185-sdk35-agp
Open

Bump compileSdk/targetSdk to 35 (Android 15), AGP 8.7.3, Gradle 8.9#197
dipenpradhan wants to merge 4 commits into
Gurupreet:masterfrom
dipenpradhan:issue-185-sdk35-agp

Conversation

@dipenpradhan

Copy link
Copy Markdown

Summary

Bumps the project to Android 15 (API 35), as proposed in #185.

  • ProjectConfigs.kt: compileSdkVersion / targetSdkVersion 34 → 35
  • AGP 8.2.2 → 8.7.3 (compileSdk 35 is officially supported from AGP 8.6)
  • Gradle wrapper 8.5 → 8.9 (required by AGP 8.7.x)

Notes

  • Edge-to-edge: targeting 35 makes Android 15 devices draw the app edge-to-edge by default. Most demo screens already manage insets via Compose Scaffolds/WindowInsets; remaining visual inset glitches on Android 15 hardware should be handled per-screen as follow-ups.
  • The README Compose-version badge is updated in the Compose BOM PR of this series, where the Compose version actually changes.

Closes #185

Verification

  • ./gradlew assembleDebug testDebugUnitTest passes locally (JDK 17, SDK 35)
  • CI ./gradlew build on this PR

Merge order

PR 3 of the stacked series. Depends on #195 and #196 — its diff includes their commits until they merge.

🤖 Generated with Claude Code

cc @Gurupreet for review

dipen and others added 2 commits June 6, 2026 15:57
- Replace kotlin-kapt with com.google.devtools.ksp in the app module
  and the common-kotlin convention plugin
- Add Room compiler via the ksp configuration instead of kapt
- Drop the kapt { correctErrorTypes = true } workaround
- Add symbol-processing-gradle-plugin (1.9.22-1.0.17) to buildSrc

Fixes Gurupreet#184

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
- Bump kotlin-gradle-plugin 1.9.22 -> 2.1.20 (root + buildSrc)
- Adopt the new Compose Compiler Gradle plugin
  (org.jetbrains.kotlin.plugin.compose) in app and convention plugins
- Drop composeCompiler version constant and composeOptions blocks
- Replace removed -Xopt-in flag with -opt-in
- Bump KSP to 2.1.20-1.0.31 to match Kotlin

Fixes Gurupreet#182

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@Gurupreet Gurupreet requested review from Gurupreet and Copilot June 6, 2026 23:06

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the project’s Android/Gradle toolchain to target Android 15 (API 35) and align build tooling with newer plugin requirements across the main build and buildSrc convention scripts.

Changes:

  • Bump Gradle wrapper to 8.9 and Android Gradle Plugin to 8.7.3.
  • Move build configuration toward the Kotlin 2.x + Compose Compiler plugin model (remove explicit composeOptions compiler extension version wiring).
  • Switch Room compiler wiring from KAPT → KSP in the shared dependency helper and convention plugins.

Reviewed changes

Copilot reviewed 8 out of 9 changed files in this pull request and generated no comments.

Show a summary per file
File Description
gradle/wrapper/gradle-wrapper.properties Bumps Gradle wrapper distribution to 8.9.
buildSrc/src/main/kotlin/common-kotlin-module-configs-script-plugin.gradle.kts Updates convention plugin to use KSP + Compose compiler plugin and removes old Compose compiler extension wiring.
buildSrc/src/main/kotlin/common-compose-module-configs-script-plugin.gradle.kts Applies Compose compiler plugin and updates opt-in compiler flag spelling.
buildSrc/src/main/kotlin/com/guru/composecookbook/build/dependencies/Versions.kt Removes Compose compiler version constant and bumps Kotlin version constant.
buildSrc/src/main/kotlin/com/guru/composecookbook/build/dependencies/DependencyHandlerExtensions.kt Moves Room compiler dependency from kapt to ksp.
buildSrc/src/main/kotlin/com/guru/composecookbook/build/configurations/ProjectConfigs.kt Bumps compileSdk/targetSdk to 35 and removes obsolete compiler-extension constant.
buildSrc/build.gradle.kts Updates buildSrc classpath dependencies for Kotlin/Compose/KSP and AGP to newer versions.
build.gradle.kts Bumps AGP/Kotlin/Compose compiler plugin classpaths.
app/build.gradle.kts Switches app module to KSP + Compose compiler plugin and updates opt-in compiler flag spelling.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

dipen and others added 2 commits June 6, 2026 19:15
ktfmt-gradle 0.12.0 fails with 'Generic error during file processing'
once Kotlin 2.x is on the buildscript classpath. 0.22.0 supports
Kotlin 2.x and also formats *.kts build scripts, hence the repo-wide
reformat (no functional changes).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
- AGP 8.2.2 -> 8.7.3 (compileSdk 35 supported from AGP 8.6)
- Gradle wrapper 8.5 -> 8.9 (required by AGP 8.7.x)

Fixes Gurupreet#185

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.

Enhancement: Bump compileSdk and targetSdk to API 35 (Android 15)

3 participants