Skip to content

Conversation

@PierreVieira
Copy link
Member

This commit upgrades the Android Gradle Plugin to version 9.0.0 and refactors the Kotlin Multiplatform convention plugin to align with the latest best practices.

Key changes:

  • AGP Upgrade:

    • Upgraded agp from 8.13.2 to 9.0.0 in gradle/libs.versions.toml.
  • Build Logic Refactoring:

    • Updated KotlinMultiplatformConventionPlugin.kt to use the new KotlinMultiplatformAndroidLibraryExtension for configuring the androidLibrary block.
    • Removed the explicit JvmTarget.JVM_21 compiler option, as it's now inferred.
    • Cleaned up unused plugins (kotlinAndroid) and properties (compose.desktop.packaging.checkJdkVendor) from build scripts and gradle.properties.
    • Corrected the androidLibrary and jvm() declaration order in several build.gradle.kts files to match modern KMP standards.
  • Code & Plugin Cleanup:

    • Removed the redundant kotlinAndroid plugin from androidApp/build.gradle.kts and the root build.gradle.kts.
    • Added @OptIn(ExperimentalComposeUiApi::class) to StringUtils.jvm.kt to address new API usage requirements.

This commit upgrades the Android Gradle Plugin to version `9.0.0` and refactors the Kotlin Multiplatform convention plugin to align with the latest best practices.

Key changes:
- **AGP Upgrade:**
    - Upgraded `agp` from `8.13.2` to `9.0.0` in `gradle/libs.versions.toml`.

- **Build Logic Refactoring:**
    - Updated `KotlinMultiplatformConventionPlugin.kt` to use the new `KotlinMultiplatformAndroidLibraryExtension` for configuring the `androidLibrary` block.
    - Removed the explicit `JvmTarget.JVM_21` compiler option, as it's now inferred.
    - Cleaned up unused plugins (`kotlinAndroid`) and properties (`compose.desktop.packaging.checkJdkVendor`) from build scripts and `gradle.properties`.
    - Corrected the `androidLibrary` and `jvm()` declaration order in several `build.gradle.kts` files to match modern KMP standards.

- **Code & Plugin Cleanup:**
    - Removed the redundant `kotlinAndroid` plugin from `androidApp/build.gradle.kts` and the root `build.gradle.kts`.
    - Added `@OptIn(ExperimentalComposeUiApi::class)` to `StringUtils.jvm.kt` to address new API usage requirements.
@PierreVieira PierreVieira self-assigned this Jan 18, 2026
@PierreVieira PierreVieira merged commit 4509baf into main Jan 18, 2026
1 check passed
@PierreVieira PierreVieira deleted the update-to-gradle-9 branch January 18, 2026 22:45
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