Repository navigation
build(android): Adopt AGP built-in Kotlin and the new DSL on 9.x.x - #6653
Draft
runningcode wants to merge 1 commit into
Draft
runningcode wants to merge 1 commit into
runningcode wants to merge 1 commit into
Conversation
This was referenced Nov 18, 2026
📲 Install BuildsAndroid
|
This branch has not been deployed
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.
PR Stack (AGP New DSL 9.x.x)
📜 Description
Collection branch for moving the 9.x.x build off the AGP 9 opt-outs
android.builtInKotlin=falseandandroid.newDsl=false. AGP 10 removes both.The stack has two steps:
org.jetbrains.kotlin.android.android.newDsl=false.It targets 9.x.x rather than main because built-in Kotlin compiles unit tests for the same JVM target as the main code. main publishes Java 8 bytecode, while test dependencies such as mockito-kotlin 6 are Java 11, and Kotlin can't inline Java 11 bytecode into Java 8 code. 9.x.x already publishes Java 11.
It builds on #6642 (moving sentry-compose to the KMP Android library plugin), which is in the main stack (#6641). Until #6642 merges and syncs into 9.x.x, the first stack PR carries a cherry-pick of it.
💡 Motivation and Context
The
android.builtInKotlin=falseandandroid.newDsl=falseopt-outs go away in AGP 10.The stack PRs resolve #5782 / JAVA-651 (built-in Kotlin) and #5781 / JAVA-650 (new DSL).
💚 How did you test it?
See the individual stack PRs.
📝 Checklist
sendDefaultPIIis enabled.🔮 Next steps
Squash-merge this into
9.x.xonce every stack PR has been merged into it.🤖 Generated with Claude Code
#skip-changelog