Skip to content

build(android): migrate Kotlin compiler options#3823

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

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

Conversation

@Tinnci

@Tinnci Tinnci commented May 10, 2026

Copy link
Copy Markdown

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
@Tinnci

Tinnci commented Jun 13, 2026

Copy link
Copy Markdown
Author

Closing this stale draft. The branch is blocked by previous failed/cancelled CI results and was not ready for review. Given the number of packages touched, this migration should be redone as a fresh, validated PR if it is still needed.

@Tinnci Tinnci closed this Jun 13, 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