Migrate to AGP 9: compileSdk 37 and android {} KMP DSL#2
Merged
Conversation
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
There was a problem hiding this comment.
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 {}toandroid {}across the affected modules. - Bump
compileSdkfrom 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.
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.
Consumer
anod/CarWidgetis 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:
compileSdkfrom 36 to 37 because androidx.core 1.19.0 / lifecycle 2.11.0 require API 37 in AAR metadata, and AGP 9 enforces it.kotlin { androidLibrary {} }DSL block tokotlin { android {} }for thecom.android.kotlin.multiplatform.libraryplugin in AGP 9 / Kotlin 2.4.10.This is a pure build-configuration change with no source or API changes.