From 7a9a9987fe4b0083ad16760b025a9e46ec0ac380 Mon Sep 17 00:00:00 2001 From: JarvanMo Date: Mon, 19 Feb 2024 20:07:42 +0800 Subject: [PATCH] Deprecated imperative apply of Flutter's Gradle plugins --- example/android/app/build.gradle | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/example/android/app/build.gradle b/example/android/app/build.gradle index fd4cf37..4d26dea 100644 --- a/example/android/app/build.gradle +++ b/example/android/app/build.gradle @@ -1,3 +1,9 @@ +plugins { + id "com.android.application" + id "kotlin-android" + id "dev.flutter.flutter-gradle-plugin" +} + def localProperties = new Properties() def localPropertiesFile = rootProject.file('local.properties') if (localPropertiesFile.exists()) { @@ -16,12 +22,6 @@ if (flutterVersionName == null) { flutterVersionName = '1.0' } -plugins { - id "com.android.application" - id "kotlin-android" - id "dev.flutter.flutter-gradle-plugin" -} - android { namespace "com.jarvan.tobias_example" compileSdkVersion flutter.compileSdkVersion