Skip to content

Migrated plugin to Built-in Kotlin Gradle Plugin (KGP)#136

Merged
diegotori merged 11 commits into
fluttercommunity:mainfrom
drmirk:kgp_migration
Jul 9, 2026
Merged

Migrated plugin to Built-in Kotlin Gradle Plugin (KGP)#136
diegotori merged 11 commits into
fluttercommunity:mainfrom
drmirk:kgp_migration

Conversation

@drmirk

@drmirk drmirk commented May 30, 2026

Copy link
Copy Markdown
Contributor

Flutter 3.44 is warning this plugin to migrate to Kotlin Gradle Plugin (KGP).

Comment thread wakelock_plus/CHANGELOG.md Outdated
Comment thread wakelock_plus/pubspec.yaml Outdated
@drmirk drmirk requested a review from diegotori May 30, 2026 21:05
@drmirk

drmirk commented May 31, 2026

Copy link
Copy Markdown
Contributor Author

I have reverted the version bump and rolled back the CHANGELOG.md.

@ubxty ubxty mentioned this pull request Jun 8, 2026
@drmirk

drmirk commented Jun 10, 2026

Copy link
Copy Markdown
Contributor Author
  • Updated the example to run in 3.38 by conditionally applying KGP only if AGP version is earlier than 9. So, now the example runs in 3.44 too.
  • Removed the unnecessary buildscript, which is fulfilled by builtin.
  • Tests run without error now.

Comment thread wakelock_plus/pubspec.yaml
@theweirdbyte

Copy link
Copy Markdown

Thanks for working on this.

My app is already migrated to the Built-in Kotlin setup, but I am still on AGP 8.x and Flutter still reports the KGP warning from wakelock_plus.

Could you please make sure the fix also covers already-migrated apps on AGP 8.x, so the plugin no longer triggers the Flutter KGP warning in that configuration?

Environment:

Flutter 3.44.4
Dart 3.12.2
AGP 8.13.2
Gradle 8.14
Kotlin 2.2.20

@diegotori

Copy link
Copy Markdown
Collaborator

@drmirk thanks for working on this

Please re-sync your changes with main again. I'm looking to finally release this today. Thanks in advance.

@dkati

dkati commented Jul 6, 2026

Copy link
Copy Markdown

any news here?

Comment thread wakelock_plus/pubspec.yaml Outdated
Comment thread wakelock_plus/pubspec.yaml Outdated
@diegotori

Copy link
Copy Markdown
Collaborator

@drmirk please re-sync your branch with main's latest changes. That should fix the Swift Package Manager failures.

Thanks.

@drmirk

drmirk commented Jul 7, 2026

Copy link
Copy Markdown
Contributor Author

@diegotori resync done

@diegotori diegotori merged commit 77c203f into fluttercommunity:main Jul 9, 2026
312 of 322 checks passed
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.

6 participants