From d5f16f1e433858bfbd0cc7037c6feb0969d38214 Mon Sep 17 00:00:00 2001 From: Sahil Kumar Date: Tue, 20 Oct 2026 14:41:24 +0200 Subject: [PATCH] fix(desktop_drop): stop Flutter's false KGP warning with built-in Kotlin Apply the Kotlin Gradle Plugin through the plugin manager instead of `apply plugin:`. The condition is unchanged, but Flutter detects KGP use by searching build scripts for that line, so it listed desktop_drop as applying KGP even when built-in Kotlin was on. Fixes #546 Co-Authored-By: Claude Opus 5.5 (1M context) --- packages/desktop_drop/android/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/desktop_drop/android/build.gradle b/packages/desktop_drop/android/build.gradle index 406787aa..bcc4c09c 100644 --- a/packages/desktop_drop/android/build.gradle +++ b/packages/desktop_drop/android/build.gradle @@ -32,7 +32,7 @@ if (builtInKotlin && project.hasProperty('android.builtInKotlin')) { } if (!builtInKotlin) { - apply plugin: 'kotlin-android' + project.pluginManager.apply('kotlin-android') } rootProject.allprojects {