From f8393c60c5e6b0d8985b2a3359668b7351ce6abd Mon Sep 17 00:00:00 2001 From: Knot Date: Thu, 28 Dec 2023 14:51:12 +0700 Subject: [PATCH 1/3] Support AGP 8 --- android/build.gradle | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/android/build.gradle b/android/build.gradle index b3ee973..9f91d67 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -25,8 +25,21 @@ apply plugin: 'com.android.library' apply plugin: 'kotlin-android' android { + if (project.android.hasProperty('namespace')) { + namespace 'com.example.imagegallerysaver' + } + compileSdkVersion 30 + compileOptions { + sourceCompatibility JavaVersion.VERSION_1_8 + targetCompatibility JavaVersion.VERSION_1_8 + } + + kotlinOptions { + jvmTarget = '1.8' + } + sourceSets { main.java.srcDirs += 'src/main/kotlin' } From 05675bd4d70f3f4dfd702ae4f0075fa09025c436 Mon Sep 17 00:00:00 2001 From: Visarut Tippun Date: Fri, 16 Aug 2024 12:47:38 +0700 Subject: [PATCH 2/3] Update build.gradle --- android/build.gradle | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/android/build.gradle b/android/build.gradle index 9f91d67..b24bd4d 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -29,7 +29,7 @@ android { namespace 'com.example.imagegallerysaver' } - compileSdkVersion 30 + compileSdkVersion 34 compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 @@ -45,6 +45,7 @@ android { } defaultConfig { minSdkVersion 16 + targetSdkVersion 34 testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } lintOptions { From ec9c561d07c13ee8f0e232d2ce07cb086fd41584 Mon Sep 17 00:00:00 2001 From: Visarut Tippun Date: Thu, 27 Feb 2025 14:44:06 +0700 Subject: [PATCH 3/3] flutter 3.29 compatible --- .../com/example/imagegallerysaver/ImageGallerySaverPlugin.kt | 1 - 1 file changed, 1 deletion(-) diff --git a/android/src/main/kotlin/com/example/imagegallerysaver/ImageGallerySaverPlugin.kt b/android/src/main/kotlin/com/example/imagegallerysaver/ImageGallerySaverPlugin.kt index c88c80f..649bc43 100644 --- a/android/src/main/kotlin/com/example/imagegallerysaver/ImageGallerySaverPlugin.kt +++ b/android/src/main/kotlin/com/example/imagegallerysaver/ImageGallerySaverPlugin.kt @@ -18,7 +18,6 @@ import io.flutter.plugin.common.MethodCall import io.flutter.plugin.common.MethodChannel import io.flutter.plugin.common.MethodChannel.MethodCallHandler import io.flutter.plugin.common.MethodChannel.Result -import io.flutter.plugin.common.PluginRegistry.Registrar import java.io.File import java.io.FileInputStream import java.io.IOException