Skip to content

Migrate Android plugin to built-in Kotlin - #76

Merged
JohnGalt1717 merged 2 commits into
mainfrom
fix/android-built-in-kotlin
Aug 23, 2026
Merged

JohnGalt1717 merged 2 commits into
mainfrom
fix/android-built-in-kotlin

Conversation

@JohnGalt1717

Copy link
Copy Markdown
Collaborator

Summary

  • Stop applying the Kotlin Gradle Plugin in openidconnect_android and switch to the kotlin.compilerOptions DSL so host apps can build on AGP 9.
  • Raise the Android package floors to Flutter 3.44 / Dart 3.12 and publish as 2.0.3.
  • Update the Android changelog and README to match the Flutter plugin-author migration guide.

Closes #75.

Test plan

  • flutter test in openidconnect_android (7 tests passed)
  • flutter build appbundle for openidconnect/example with Java 17
  • Copilot review addressed
  • Publish openidconnect_android 2.0.3 after merge

Stop applying the Kotlin Gradle Plugin in openidconnect_android
and switch to the kotlin.compilerOptions DSL. Bump the package
to 2.0.3 and raise the Flutter/Dart floors to 3.44/3.12.

Closes #75
Copilot AI lite review requested due to automatic review settings August 23, 2026 19:02

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request migrates the openidconnect_android Flutter federated plugin toward Flutter’s built-in Kotlin flow to improve compatibility with newer Android Gradle Plugin (AGP) versions (including AGP 9), while also bumping the minimum supported Flutter/Dart SDK floors and publishing a new patch release.

Changes:

  • Bumped openidconnect_android to 2.0.3 and raised minimum SDK floors to Flutter >=3.44.0 / Dart >=3.12.0.
  • Updated the Android Gradle configuration to stop applying kotlin-android and configure JVM target via kotlin.compilerOptions.
  • Updated changelog and README to reflect the migration and new requirements.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
openidconnect_android/README.md Updates documented minimum Flutter/Dart requirements.
openidconnect_android/pubspec.yaml Bumps package version and raises environment SDK constraints.
openidconnect_android/CHANGELOG.md Adds 2.0.3 release notes describing the migration and SDK floor changes.
openidconnect_android/android/build.gradle Removes kotlin-android application and configures Kotlin compiler options for JVM 17.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread openidconnect_android/android/build.gradle
Address Copilot review on #76 by removing the standalone
kotlin-gradle-plugin classpath from the Android plugin module.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

Suppressed comments (1)

openidconnect_android/android/build.gradle:44

  • lintOptions { ... } is removed in AGP 9; keeping it will break builds on AGP 9+ (which this PR aims to support). Migrate this block to the new lint { ... } DSL.
    lintOptions {
        disable 'InvalidPackage'
    }

Comment thread openidconnect_android/android/build.gradle
@JohnGalt1717
JohnGalt1717 merged commit b26539e into main Aug 23, 2026
47 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.

Migrate to Builting Kotlin for Android

3 participants