-
-
Notifications
You must be signed in to change notification settings - Fork 32
Android kmp library #422
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Android kmp library #422
Conversation
3758eff to
4470624
Compare
e377198 to
542ec7c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR migrates Android multiplatform modules from the traditional Android library plugin to the new Android KMP (Kotlin Multiplatform) library plugin, streamlining the build configuration for multiplatform projects.
- Replaces
androidLibraryplugin withandroidKmpLibraryplugin across all UI modules - Consolidates Android configuration into the Kotlin multiplatform block using
androidLibrarytarget - Comments out desktop/JVM targets and related configuration
Reviewed Changes
Copilot reviewed 6 out of 7 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| ui-tiles/build.gradle.kts | Migrates to androidKmpLibrary plugin and consolidates Android config |
| ui-tiles-extended/build.gradle.kts | Migrates to androidKmpLibrary plugin and consolidates Android config |
| ui-base/build.gradle.kts | Migrates to androidKmpLibrary plugin and consolidates Android config |
| samples/shared/build.gradle.kts | Migrates to androidKmpLibrary plugin and consolidates Android config |
| samples/desktopApp/build.gradle.kts | Comments out JVM target configuration |
| gradle/libs.versions.toml | Adds androidKmpLibrary plugin definition |
| androidLibrary { | ||
| namespace = libs.versions.namespace.get() + ".sample.shared" | ||
| compileSdk = libs.versions.android.compileSdk.get().toInt() | ||
| minSdk = libs.versions.android.minSdk.get().toInt() |
Copilot
AI
Jul 25, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The minSdk configuration uses libs.versions.android.minSdk but the commented-out android block was using libs.versions.android.minSdkSample. This change may result in incorrect minimum SDK version for the sample module.
| minSdk = libs.versions.android.minSdk.get().toInt() | |
| minSdk = libs.versions.android.minSdkSample.get().toInt() |
| /* | ||
| val desktopMain by getting | ||
| desktopMain.dependencies { | ||
| api(compose.desktop.currentOs) | ||
| implementation(compose.desktop.common) | ||
| } | ||
| } | ||
| } | ||
|
|
||
| android { | ||
| namespace = libs.versions.namespace.get() + ".sample.shared" | ||
| compileSdk = | ||
| libs.versions.android.compileSdk | ||
| .get() | ||
| .toInt() | ||
|
|
||
| sourceSets["main"].manifest.srcFile("src/androidMain/AndroidManifest.xml") | ||
| sourceSets["main"].res.srcDirs("src/androidMain/res") | ||
| sourceSets["main"].resources.srcDirs("src/commonMain/resources") | ||
|
|
||
| defaultConfig { | ||
| minSdk = | ||
| libs.versions.android.minSdkSample | ||
| .get() | ||
| .toInt() | ||
| } | ||
| compileOptions { | ||
| sourceCompatibility = JavaVersion.VERSION_17 | ||
| targetCompatibility = JavaVersion.VERSION_17 | ||
| */ |
Copilot
AI
Jul 25, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The desktopMain source set configuration is commented out but still referenced in the sourceSets block. This creates incomplete configuration that may cause build issues when desktop support is re-enabled.
542ec7c to
043ef06
Compare
043ef06 to
778f510
Compare
No description provided.