Skip to content

fix(android): respect android.builtInKotlin flag when applying Kotlin plugin - #1100

Merged
Lyokone merged 1 commit into
Lyokone:masterfrom
CharlesPlantePulsar:fix-agp9-ignore-flag
Jul 23, 2026
Merged

fix(android): respect android.builtInKotlin flag when applying Kotlin plugin#1100
Lyokone merged 1 commit into
Lyokone:masterfrom
CharlesPlantePulsar:fix-agp9-ignore-flag

Conversation

@CharlesPlantePulsar

Copy link
Copy Markdown

… plugin

The plugin gated the standalone Kotlin Gradle plugin purely on the AGP major version (agpMajor < 9), assuming AGP 9 always implies built-in Kotlin. But built-in Kotlin can be disabled on AGP 9 via the android.builtInKotlin Gradle property. When it is off, neither KGP nor built-in Kotlin is applied, leaving the kotlin { } block with no backing extension and failing the build.

Check the flag in addition to the AGP version so the standalone plugin is applied whenever built-in Kotlin is not active. Mirrors the logic used by other Flutter plugins (e.g. file_picker).

… plugin

The plugin gated the standalone Kotlin Gradle plugin purely on the AGP
major version (`agpMajor < 9`), assuming AGP 9 always implies built-in
Kotlin. But built-in Kotlin can be disabled on AGP 9 via the
`android.builtInKotlin` Gradle property. When it is off, neither KGP nor
built-in Kotlin is applied, leaving the `kotlin { }` block with no
backing extension and failing the build.

Check the flag in addition to the AGP version so the standalone plugin
is applied whenever built-in Kotlin is not active. Mirrors the logic
used by other Flutter plugins (e.g. file_picker).
@Lyokone Lyokone changed the title fix(android): respect android.builtInKotlin flag when applying Kotlin… fix(android): respect android.builtInKotlin flag when applying Kotlin plugin Jul 23, 2026
@Lyokone
Lyokone merged commit 11e0ffe into Lyokone:master Jul 23, 2026
6 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.

2 participants