Skip to content

[Request]: Migrate battery_plus and share_plus to built-in Kotlin #3952

Description

@RohitCh678

Plugin

battery_plus, share_plus

Use case

Both battery_plus and share_plus still apply the Kotlin Gradle Plugin (kotlin-android) directly in their Android build.gradle. Starting with Android Gradle Plugin (AGP) 9.0, support for applying KGP this way has been removed, which will cause a compilation error for any app that depends on these plugins. Flutter issue #181383 includes an example of the error. Flutter has temporarily added support to allow KGP while apps and plugins migrate to AGP 9.0 or later, but this support will be removed in a future version of Flutter.

Proposal

Please migrate battery_plus and share_plus to use Built-in Kotlin (drop the explicit application of the Kotlin Gradle Plugin / kotlin-android in the Android build.gradle) so that apps depending on these plugins can successfully build once AGP 9.0 removes support for applying KGP directly. See the Flutter migration guide for plugin authors: https://docs.flutter.dev/release/breaking-changes/migrate-to-built-in-kotlin/for-plugin-authors

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions