Support AGP 9 example compatibility#122
Open
nohli wants to merge 1 commit into
Open
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the plugin’s Android/Gradle setup and the example app to remain compatible across Flutter hosts ranging from legacy AGP/Kotlin setups through AGP 9’s built-in Kotlin support, and bumps the package patch version accordingly.
Changes:
- Bump package version to
0.5.2+2(and update the example lockfile and changelog). - Example: declare Kotlin Gradle Plugin
2.2.20and conditionally apply Kotlin based on AGP 9 built-in Kotlin behavior. - Plugin Android build: add Flutter-extension fallbacks for
compileSdk/minSdkand adjust Kotlin JVM target configuration paths.
Reviewed changes
Copilot reviewed 5 out of 6 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| pubspec.yaml | Bumps package version to 0.5.2+2. |
| example/pubspec.lock | Updates example’s path dependency version to match the package bump. |
| example/android/settings.gradle | Declares KGP 2.2.20 in plugin management for the example project. |
| example/android/app/build.gradle | Adds AGP/built-in Kotlin detection and conditionally applies Kotlin/Flutter Gradle plugins. |
| android/build.gradle | Adds flutter extension fallbacks and adjusts Kotlin JVM target configuration by Kotlin path. |
| CHANGELOG.md | Documents the 0.5.2+2 changes. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
1
to
3
| plugins { | ||
| id "com.android.application" | ||
| // The Flutter Gradle Plugin must be applied after the Android Gradle plugin. | ||
| id "dev.flutter.flutter-gradle-plugin" | ||
| } |
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.
Summary
Validation