Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .changes/android-kgp-warning-builtin-kotlin
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
patch type="fixed" "Apply kotlin-android through pluginManager on Android so Flutter no longer warns that livekit_client applies the Kotlin Gradle Plugin when built-in Kotlin is active"
5 changes: 4 additions & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,11 @@ def agpMajor = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION.tokenize(".")[0
def builtInKotlinActive = agpMajor >= 9 &&
(!project.hasProperty("android.builtInKotlin") ||
Boolean.parseBoolean(project.property("android.builtInKotlin").toString()))
// pluginManager.apply, not `apply plugin:`: Flutter's KGP detection greps the
// build file for a literal `apply plugin: "kotlin-android"` line and would
// report it even when this guard skips it.
if (!builtInKotlinActive) {
apply plugin: "kotlin-android"
pluginManager.apply("kotlin-android")
}

android {
Expand Down
Loading