Skip to content

cryptography_flutter: migrate Android Gradle to built-in Kotlin - #232

Open
ashutosh2014 wants to merge 1 commit into
dint-dev:masterfrom
ashutosh2014:flutter-agp9-built-in-kotlin
Open

ashutosh2014 wants to merge 1 commit into
dint-dev:masterfrom
ashutosh2014:flutter-agp9-built-in-kotlin

Conversation

@ashutosh2014

Copy link
Copy Markdown

Summary

Migrates cryptography_flutter’s Android library module to AGP 9 built-in Kotlin per Flutter’s plugin author guide:

  • Remove apply plugin: "kotlin-android" and the Kotlin Gradle Plugin classpath
  • Remove kotlinOptions from the android block
  • Add kotlin { compilerOptions { jvmTarget = JVM_17 } }

Fixes #229 (also related to #227).

Test plan

  • ./example builds with android.builtInKotlin=true on Flutter 3.47+
  • Plugin unit tests still pass

Made with Cursor

Remove the Kotlin Gradle Plugin application and kotlinOptions in favor of
the kotlin.compilerOptions DSL required for AGP 9+ with built-in Kotlin.

Fixes dint-dev#229

Co-authored-by: Cursor <cursoragent@cursor.com>

This branch has not been deployed

No deployments
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.

cryptography_flutter: applies Kotlin Gradle Plugin unconditionally, breaks AGP 9 built-in Kotlin

1 participant