Skip to content

build(android): migrate Kotlin compiler options#3823

Draft
Tinnci wants to merge 2 commits into
fluttercommunity:mainfrom
Tinnci:agp9-built-in-kotlin
Draft

build(android): migrate Kotlin compiler options#3823
Tinnci wants to merge 2 commits into
fluttercommunity:mainfrom
Tinnci:agp9-built-in-kotlin

Conversation

@Tinnci
Copy link
Copy Markdown

@Tinnci Tinnci commented May 10, 2026

Draft status

This PR keeps the existing Kotlin Gradle Plugin application for current repository CI compatibility, while migrating deprecated Android kotlinOptions blocks to top-level kotlin { compilerOptions { ... } }.

This is intentionally not the full AGP 9 built-in Kotlin removal. Removing kotlin-android should be handled separately only when this repository is ready to require AGP 9 built-in Kotlin.

Scope

  • battery_plus
  • network_info_plus
  • package_info_plus
  • sensors_plus

No Dart APIs, Android manifests, SDK versions, or runtime code are changed.

Verification

  • rg "kotlinOptions" on touched Android Gradle files returns no matches.
  • rg "compilerOptions" confirms JVM target configuration exists.
  • git diff --check

@Tinnci Tinnci changed the title [Android] Support AGP 9 built-in Kotlin [Draft][Android] Support AGP 9 built-in Kotlin May 10, 2026
@Tinnci Tinnci changed the title [Draft][Android] Support AGP 9 built-in Kotlin build(android): migrate Kotlin compiler options May 10, 2026
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.

1 participant