[Android] Migrate plugin to AGP 9 built-in Kotlin path#180
Draft
Copilot wants to merge 2 commits into
Draft
Conversation
Agent-Logs-Url: https://github.com/britannio/in_app_review/sessions/83fc82be-e596-47e6-b92d-b5a2bb0c6770 Co-authored-by: britannio <33752528+britannio@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Implement built-in Kotlin migration for AGP 9
[Android] Migrate plugin to AGP 9 built-in Kotlin path
May 20, 2026
MirceaX2Mobile
added a commit
to Stampino/barcode_scan2
that referenced
this pull request
Jul 1, 2026
Match the merged britannio/in_app_review#180 exactly: keep the AGP classpath in buildscript, remove the Kotlin classpath + ext.kotlin_version, remove kotlin-android entirely (no guard), keep main.java.srcDirs += src/main/kotlin, and add an unconditional top-level kotlin { compilerOptions { jvmTarget = JVM_17 } }. My earlier 353748f wrongly removed the AGP classpath, the src/main/kotlin srcDir, and the kotlin{} block.
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.
This updates the Android plugin configuration to align with Flutter’s built-in Kotlin migration path for AGP 9 (
android.builtInKotlin=true/android.newDsl=true). It also raises the package SDK floor required for this migration.Android plugin Gradle migration (
in_app_review/android/build.gradle)kotlin-gradle-pluginclasspath andapply plugin: "kotlin-android").kotlin.compilerOptions.Example Android app migration (
in_app_review/example/android)settings.gradle.kts.id("kotlin-android")from app module plugins.android.kotlinOptionswithkotlin { compilerOptions { ... } }.SDK floor updates (
in_app_review/pubspec.yaml)^3.12.0>=3.44.0Release notes (
in_app_review/CHANGELOG.md)2.0.13entry documenting built-in Kotlin migration and Flutter/Dart minimum updates.Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
dl.google.com/usr/lib/jvm/temurin-17-jdk-amd64/bin/java /usr/lib/jvm/temurin-17-jdk-amd64/bin/java --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED --add-opens=java.base/java.nio.charset=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED --add-opens=java.base/java.util.concurrent=ALL-UNNAMED --add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED --add-opens=java.xml/javax.xml.namespace=ALL-UNNAMED --add-opens=java.base/java.time=ALL-UNNAMED -XX:MaxMetaspaceSize=384m -XX:+HeapDumpOnOutOfMemoryError -Xms256m -Xmx512m -Dfile.encoding=UTF-8 -Duser.country -Duser.language=en(dns block)docs.flutter.dev/home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js(dns block)https://storage.googleapis.com/flutter_infra_release/releases/releases_linux.json/dependabot-proxy /dependabot-proxy -o br-257704de8e9e -j DROP Root_G4.pem b16/log.json e00ba278a984ee89-id --global al_Root_CA.crt bash test(http block)/dependabot-proxy /dependabot-proxy 1.pem /usr/bin/git test -e oot_CA.pem /usr/bin/git test cd09326e1acd335e/usr/sbin/iptables RSA4096_Root_G5.--wait 7f156f88269c.git-t 9ca479e384f8f1eafilter -e(http block)If you need me to access, download, or install something from one of these locations, you can either: