Migrate to built-in Kotlin#137
Closed
ubxty wants to merge 1 commit into
Closed
Conversation
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 commit 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 for wakelock_plus. 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)".
Author
|
Closing as a duplicate of #136 which was opened 9 days ago by drmirk and is doing the same migration. Happy to coordinate or help with that PR if it's stuck on a specific issue. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 samefrom the example app's
example/android/app/build.gradle.The example app builds cleanly with
flutter build apk --debugonFlutter 3.44.1 with no KGP deprecation warnings for wakelock_plus.
Bumps the minimum Flutter version to 3.44.0 and Dart SDK to 3.12.0,
as required by the new
kotlin.compilerOptionsDSL.Fixes the warning: "Your app uses the following plugins that apply
Kotlin Gradle Plugin (KGP)".