Skip to content

Conversation

@alorma
Copy link
Owner

@alorma alorma commented Jul 25, 2025

No description provided.

@alorma alorma requested a review from Copilot July 25, 2025 16:52
@alorma alorma added the blocked label Jul 25, 2025

This comment was marked as outdated.

@alorma alorma force-pushed the androidKMPLibrary branch from 3758eff to 4470624 Compare July 25, 2025 16:55
@alorma alorma requested a review from Copilot July 25, 2025 16:56

This comment was marked as outdated.

@alorma alorma requested a review from Copilot July 25, 2025 16:57

This comment was marked as outdated.

@alorma alorma force-pushed the androidKMPLibrary branch from e377198 to 542ec7c Compare July 25, 2025 16:58
@alorma alorma requested a review from Copilot July 25, 2025 17:09
Copy link
Contributor

Copilot AI left a 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 androidLibrary plugin with androidKmpLibrary plugin across all UI modules
  • Consolidates Android configuration into the Kotlin multiplatform block using androidLibrary target
  • 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()
Copy link

Copilot AI Jul 25, 2025

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.

Suggested change
minSdk = libs.versions.android.minSdk.get().toInt()
minSdk = libs.versions.android.minSdkSample.get().toInt()

Copilot uses AI. Check for mistakes.
Comment on lines +81 to +87
/*
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
*/
Copy link

Copilot AI Jul 25, 2025

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.

Copilot uses AI. Check for mistakes.
@alorma alorma force-pushed the androidKMPLibrary branch from 542ec7c to 043ef06 Compare August 1, 2025 10:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants