Skip to content

chore(android): migrate plugins to built-in Kotlin - #895

Open
Aricatos wants to merge 2 commits into
flutter-ml:developfrom
Aricatos:codex/built-in-kotlin
Open

chore(android): migrate plugins to built-in Kotlin#895
Aricatos wants to merge 2 commits into
flutter-ml:developfrom
Aricatos:codex/built-in-kotlin

Conversation

@Aricatos

@Aricatos Aricatos commented Aug 6, 2026

Copy link
Copy Markdown

Summary

  • migrate all 22 Android plugin modules away from applying the Kotlin Gradle Plugin
  • replace legacy kotlinOptions blocks with kotlin.compilerOptions
  • raise the package floor to Flutter 3.44 / Dart 3.12, as required by Flutter's migration guide
  • migrate the example app and add stable plus Flutter 3.47 beta Android build lanes

Closes #888.

Validation

  • flutter pub get succeeds for the full example workspace
  • a focused consumer using google_mlkit_barcode_scanning, google_mlkit_commons, and google_mlkit_text_recognition builds a debug APK on Flutter 3.44.8 without the legacy plugin-KGP warning
  • all 22 Android plugin build files contain the compiler-options DSL and none applies or declares KGP
  • git diff --check passes

The full all-package example build progressed through native/Kotlin compilation without an emitted error but exceeded a 15-minute local validation bound. The new CI jobs are intended to complete that matrix, including AGP 9 built-in Kotlin on Flutter 3.47 beta.

Release note

This intentionally leaves package version and changelog headings to the maintainers so the migration can follow the final pre-Flutter-3.44 compatibility releases discussed in #888. Each migrated package's eventual release notes should mention the Flutter 3.44 / Dart 3.12 minimum and built-in Kotlin migration.

@Aricatos Aricatos changed the title Migrate Android plugins to built-in Kotlin chore(android): migrate plugins to built-in Kotlin Aug 6, 2026
@Aricatos
Aricatos marked this pull request as ready for review August 6, 2026 13:33
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.

Migrate Android plugins to Flutter built-in Kotlin support

1 participant