From d9d2e7837d826970262e2a352459fc27a84f56e1 Mon Sep 17 00:00:00 2001 From: Matthias Ngeo Date: Tue, 23 Jul 2024 18:41:50 +0800 Subject: [PATCH] Upgrade gradle --- forui/example/android/app/build.gradle | 11 +++++------ .../android/gradle/wrapper/gradle-wrapper.properties | 2 +- forui/example/android/settings.gradle | 4 ++-- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/forui/example/android/app/build.gradle b/forui/example/android/app/build.gradle index 704886618..eae2929e5 100644 --- a/forui/example/android/app/build.gradle +++ b/forui/example/android/app/build.gradle @@ -24,16 +24,15 @@ if (flutterVersionName == null) { android { namespace "com.foruslabs.forui.samples.samples" - compileSdk flutter.compileSdkVersion - ndkVersion flutter.ndkVersion + compileSdk 34 compileOptions { - sourceCompatibility JavaVersion.VERSION_1_8 - targetCompatibility JavaVersion.VERSION_1_8 + sourceCompatibility JavaVersion.VERSION_17 + targetCompatibility JavaVersion.VERSION_17 } kotlinOptions { - jvmTarget = '1.8' + jvmTarget = '17' } sourceSets { @@ -42,7 +41,7 @@ android { defaultConfig { // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). - applicationId "com.foruslabs.forui.samples.samples" + applicationId "com.foruslabs.forui.example" // You can update the following values to match your application needs. // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration. minSdkVersion flutter.minSdkVersion diff --git a/forui/example/android/gradle/wrapper/gradle-wrapper.properties b/forui/example/android/gradle/wrapper/gradle-wrapper.properties index e1ee6e4c9..45181329e 100644 --- a/forui/example/android/gradle/wrapper/gradle-wrapper.properties +++ b/forui/example/android/gradle/wrapper/gradle-wrapper.properties @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.4-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip diff --git a/forui/example/android/settings.gradle b/forui/example/android/settings.gradle index cdfc6080b..c124b84f6 100644 --- a/forui/example/android/settings.gradle +++ b/forui/example/android/settings.gradle @@ -19,8 +19,8 @@ pluginManagement { plugins { id "dev.flutter.flutter-plugin-loader" version "1.0.0" - id "com.android.application" version "7.4.2" apply false - id "org.jetbrains.kotlin.android" version "1.9.25" apply false + id "com.android.application" version '8.4.0' apply false + id "org.jetbrains.kotlin.android" version "2.0.0" apply false } include ":app"