From 76854d18a5f8deda31a3084729fd0e266e4c47fe Mon Sep 17 00:00:00 2001 From: bschmalb-ksta Date: Wed, 16 Sep 2026 10:03:01 +0200 Subject: [PATCH] fix(android): apply the kotlin plugin in the android module The module has a top-level `kotlin { compilerOptions { ... } }` block but stopped applying `kotlin-android`, so the extension only exists where the flutter tool applies the kotlin plugin to plugin projects on its own. On a flutter version that does not, evaluating the project fails with "Could not find method kotlin()" and the app cannot be built at all. 0.2.1 still carried both the classpath and the apply, so this restores them and keeps the newer compilerOptions block. --- .../sourcepoint_unified_cmp_android/android/build.gradle | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/sourcepoint_unified_cmp_android/android/build.gradle b/packages/sourcepoint_unified_cmp_android/android/build.gradle index 48e3704..642bbae 100644 --- a/packages/sourcepoint_unified_cmp_android/android/build.gradle +++ b/packages/sourcepoint_unified_cmp_android/android/build.gradle @@ -10,6 +10,7 @@ buildscript { dependencies { classpath 'com.android.tools.build:gradle:8.13.2' + classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" } } @@ -21,6 +22,10 @@ rootProject.allprojects { } apply plugin: 'com.android.library' +// Without this the `kotlin` extension below does not exist, and the module +// only builds where the flutter tool happens to apply the kotlin plugin for +// it, which it does not do on every flutter version. +apply plugin: 'kotlin-android' android { compileSdk 34