Skip to content

Migrate Android to built-in Kotlin (min Flutter 3.44)#88

Merged
kinex merged 1 commit into
masterfrom
fix/built-in-kotlin-kgp
Jun 19, 2026
Merged

Migrate Android to built-in Kotlin (min Flutter 3.44)#88
kinex merged 1 commit into
masterfrom
fix/built-in-kotlin-kgp

Conversation

@kinex

@kinex kinex commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Apply the Kotlin Gradle Plugin only on AGP < 9; built-in Kotlin handles AGP 9+ (official Flutter plugin-authors migration).
  • Replace kotlinOptions with an unconditional kotlin { compilerOptions { jvmTarget = JVM_17 } } block.
  • Raise minimum SDK to Flutter 3.44 / Dart 3.12; bump version to 6.1.0.

Test plan

  • Verified a consuming app builds with flutter build apk on Flutter 3.44 / AGP 8.11.1 (kotlin-android still applied on AGP 8.x; behavior unchanged).
  • flutter pub get resolves on Flutter 3.44 / Dart 3.12.

- Apply the Kotlin Gradle Plugin only on AGP < 9 (built-in Kotlin handles AGP 9+)
- Replace kotlinOptions with kotlin { compilerOptions { jvmTarget = JVM_17 } }
- Raise minimum SDK to Flutter 3.44 / Dart 3.12
Copilot AI review requested due to automatic review settings June 19, 2026 11:24

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@kinex kinex merged commit b71bbd3 into master Jun 19, 2026
1 check failed
@kinex kinex deleted the fix/built-in-kotlin-kgp branch June 19, 2026 11:30
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