From 217b39816b67aa7a0a892e345bc9984766a044fb Mon Sep 17 00:00:00 2001 From: Quoc Huynh Date: Tue, 26 Nov 2024 12:55:28 +0100 Subject: [PATCH] Update distributionUrl and com.android.application, add java version to .tool-versions --- .tool-versions | 1 + native_image_cropper/example/android/app/build.gradle | 4 ++++ .../example/android/gradle/wrapper/gradle-wrapper.properties | 2 +- native_image_cropper/example/android/settings.gradle | 2 +- native_image_cropper_android/example/android/app/build.gradle | 4 ++++ .../example/android/gradle/wrapper/gradle-wrapper.properties | 2 +- native_image_cropper_android/example/android/settings.gradle | 2 +- 7 files changed, 13 insertions(+), 4 deletions(-) diff --git a/.tool-versions b/.tool-versions index 3b81679..fd1e0a4 100644 --- a/.tool-versions +++ b/.tool-versions @@ -1 +1,2 @@ flutter 3.24.5-stable +java openjdk-17 diff --git a/native_image_cropper/example/android/app/build.gradle b/native_image_cropper/example/android/app/build.gradle index 12fb8e3..616ef4a 100644 --- a/native_image_cropper/example/android/app/build.gradle +++ b/native_image_cropper/example/android/app/build.gradle @@ -33,6 +33,10 @@ android { targetCompatibility = JavaVersion.VERSION_1_8 } + kotlinOptions { + jvmTarget = '1.8' + } + defaultConfig { // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). applicationId = "biz.cosee.native_image_cropper_example" diff --git a/native_image_cropper/example/android/gradle/wrapper/gradle-wrapper.properties b/native_image_cropper/example/android/gradle/wrapper/gradle-wrapper.properties index e1ee6e4..f8748fc 100644 --- a/native_image_cropper/example/android/gradle/wrapper/gradle-wrapper.properties +++ b/native_image_cropper/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.11.1-all.zip diff --git a/native_image_cropper/example/android/settings.gradle b/native_image_cropper/example/android/settings.gradle index d6efb73..42a51c6 100644 --- a/native_image_cropper/example/android/settings.gradle +++ b/native_image_cropper/example/android/settings.gradle @@ -18,7 +18,7 @@ pluginManagement { plugins { id "dev.flutter.flutter-plugin-loader" version "1.0.0" - id "com.android.application" version "8.5.1" apply false + id "com.android.application" version "8.7.2" apply false id "org.jetbrains.kotlin.android" version "2.0.21" apply false } diff --git a/native_image_cropper_android/example/android/app/build.gradle b/native_image_cropper_android/example/android/app/build.gradle index cf1b212..a3726f4 100644 --- a/native_image_cropper_android/example/android/app/build.gradle +++ b/native_image_cropper_android/example/android/app/build.gradle @@ -33,6 +33,10 @@ android { targetCompatibility = JavaVersion.VERSION_1_8 } + kotlinOptions { + jvmTarget = '1.8' + } + defaultConfig { // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). applicationId = "biz.cosee.native_image_cropper_android_example" diff --git a/native_image_cropper_android/example/android/gradle/wrapper/gradle-wrapper.properties b/native_image_cropper_android/example/android/gradle/wrapper/gradle-wrapper.properties index e1ee6e4..f8748fc 100644 --- a/native_image_cropper_android/example/android/gradle/wrapper/gradle-wrapper.properties +++ b/native_image_cropper_android/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.11.1-all.zip diff --git a/native_image_cropper_android/example/android/settings.gradle b/native_image_cropper_android/example/android/settings.gradle index d6efb73..42a51c6 100644 --- a/native_image_cropper_android/example/android/settings.gradle +++ b/native_image_cropper_android/example/android/settings.gradle @@ -18,7 +18,7 @@ pluginManagement { plugins { id "dev.flutter.flutter-plugin-loader" version "1.0.0" - id "com.android.application" version "8.5.1" apply false + id "com.android.application" version "8.7.2" apply false id "org.jetbrains.kotlin.android" version "2.0.21" apply false }