Skip to content

Migrate KMP Android modules before AGP 10 #503

Description

@alexstyl

Deadline

Why

PR #502 upgrades the project to AGP 9.1.1 but temporarily retains the legacy AGP/KMP integration with:

android.builtInKotlin=false
android.newDsl=false

AGP 10 removes these compatibility opt-outs. The project must migrate before upgrading to AGP 10.

Scope

  • Migrate KMP library modules from com.android.library to com.android.kotlin.multiplatform.library.
  • Replace the current androidTarget and top-level android configuration with the Android-KMP DSL.
  • Preserve Android instrumented-test coverage and configure device tests explicitly where required.
  • Decide and document how the new single-variant Android-KMP publishing model replaces the current debug/release publications.
  • Move Android application entry points out of KMP modules into standalone Android app modules where required.
  • Remove android.builtInKotlin=false and android.newDsl=false.

Acceptance criteria

  • No module combines org.jetbrains.kotlin.multiplatform with com.android.library or com.android.application.
  • The two AGP compatibility flags are removed.
  • Existing Maven coordinates and intended Android publications are preserved or intentionally migrated.
  • jvmTest and spotlessCheck pass.
  • All Android demo applications assemble.
  • All Android connected-test modules pass.
  • Full Nightly Checks complete without AGP/KMP compatibility warnings or failures attributable to the migration.

Context

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    great first contributionThis issue is a great choice for those contributing to the project for the first time.task

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions