Skip to content

Migrate to built-in Kotlin#385

Open
ubxty wants to merge 1 commit into
Dev-hwang:masterfrom
ubxty:migrate-to-built-in-kotlin
Open

Migrate to built-in Kotlin#385
ubxty wants to merge 1 commit into
Dev-hwang:masterfrom
ubxty:migrate-to-built-in-kotlin

Conversation

@ubxty

@ubxty ubxty commented Jun 8, 2026

Copy link
Copy Markdown

Migrates the plugin to use built-in Kotlin per the official Flutter
migration guide:
https://docs.flutter.dev/release/breaking-changes/migrate-to-built-in-kotlin/for-plugin-authors

AGP 9.0 will remove support for plugins that apply the Kotlin Gradle
Plugin. This PR removes the legacy apply plugin: "kotlin-android"
line and the KGP classpath from android/build.gradle, and the same
from the example app's example/android/app/build.gradle.

The example app builds cleanly with flutter build apk --debug on
Flutter 3.44.1 with no KGP deprecation warnings.

Bumps the minimum Flutter version to 3.44.0 and Dart SDK to 3.12.0,
as required by the new kotlin.compilerOptions DSL.

Fixes the warning: "Your app uses the following plugins that apply
Kotlin Gradle Plugin (KGP)".

Migrates the plugin to use built-in Kotlin per the official Flutter
migration guide:
https://docs.flutter.dev/release/breaking-changes/migrate-to-built-in-kotlin/for-plugin-authors

AGP 9.0 will remove support for plugins that apply the Kotlin Gradle
Plugin. This PR removes the legacy `apply plugin: "kotlin-android"`
line and the KGP classpath from `android/build.gradle`, and the same
from the example app's `example/android/app/build.gradle`.

The example app builds cleanly with `flutter build apk --debug` on
Flutter 3.44.1 with no KGP deprecation warnings.

Bumps the minimum Flutter version to 3.44.0 and Dart SDK to 3.12.0,
as required by the new `kotlin.compilerOptions` DSL.

Fixes the warning: "Your app uses the following plugins that apply
Kotlin Gradle Plugin (KGP)".
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