Skip to content

Migrate to AGP 9: compileSdk 37 and android {} KMP DSL#2

Merged
anod merged 1 commit into
masterfrom
agp-9-compilesdk37-android-dsl
Jul 22, 2026
Merged

Migrate to AGP 9: compileSdk 37 and android {} KMP DSL#2
anod merged 1 commit into
masterfrom
agp-9-compilesdk37-android-dsl

Conversation

@anod

@anod anod commented Jul 22, 2026

Copy link
Copy Markdown
Owner

Consumer anod/CarWidget is migrating to AGP 9.3.0 / Kotlin 2.4.10, and this updates all 10 Kotlin Multiplatform library module build scripts required by that migration.

Changes:

  • Bump compileSdk from 36 to 37 because androidx.core 1.19.0 / lifecycle 2.11.0 require API 37 in AAR metadata, and AGP 9 enforces it.
  • Rename the deprecated kotlin { androidLibrary {} } DSL block to kotlin { android {} } for the com.android.kotlin.multiplatform.library plugin in AGP 9 / Kotlin 2.4.10.

This is a pure build-configuration change with no source or API changes.

Bump compileSdk 36 -> 37 (required by androidx.core 1.19.0 / lifecycle 2.11.0 AAR metadata; AGP 9 enforces it).

Rename deprecated `kotlin { androidLibrary {} }` to `kotlin { android {} }` for the com.android.kotlin.multiplatform.library plugin (AGP 9 / Kotlin 2.4.10).

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 534c1f2d-6818-4df0-b4d2-23fccfbf9976

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 this repository’s Kotlin Multiplatform Android library module build scripts to be compatible with an AGP 9.x / Kotlin 2.4.x migration, aligning Android build metadata requirements (notably compileSdk) and adopting the updated KMP Android DSL.

Changes:

  • Migrate KMP Android DSL from androidLibrary {} to android {} across the affected modules.
  • Bump compileSdk from 36 to 37 across all 10 KMP library modules.

Reviewed changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
viewmodel/build.gradle.kts Switch KMP Android DSL to android {} and bump compileSdk to 37.
playservices/build.gradle.kts Switch KMP Android DSL to android {} and bump compileSdk to 37.
permissions/build.gradle.kts Switch KMP Android DSL to android {} and bump compileSdk to 37.
notification/build.gradle.kts Switch KMP Android DSL to android {} and bump compileSdk to 37.
ktx/build.gradle.kts Switch KMP Android DSL to android {} and bump compileSdk to 37.
graphics/build.gradle.kts Switch KMP Android DSL to android {} and bump compileSdk to 37.
framework/build.gradle.kts Switch KMP Android DSL to android {} and bump compileSdk to 37.
context/build.gradle.kts Switch KMP Android DSL to android {} and bump compileSdk to 37.
compose/build.gradle.kts Switch KMP Android DSL to android {} and bump compileSdk to 37.
applog/build.gradle.kts Switch KMP Android DSL to android {} and bump compileSdk to 37.

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

Comment thread applog/build.gradle.kts
@anod
anod merged commit e78be82 into master Jul 22, 2026
1 check passed
@anod
anod deleted the agp-9-compilesdk37-android-dsl branch July 22, 2026 09:28
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.

2 participants