From 33f65c01b624bbf7c5446d9096e1aa0f8ffd88fb Mon Sep 17 00:00:00 2001 From: Dick Verweij Date: Tue, 2 Apr 2024 15:27:01 +0200 Subject: [PATCH 1/3] Update SwiftImageGallerySaverPlugin.swift --- ios/Classes/SwiftImageGallerySaverPlugin.swift | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ios/Classes/SwiftImageGallerySaverPlugin.swift b/ios/Classes/SwiftImageGallerySaverPlugin.swift index 876c318..edc4ee3 100644 --- a/ios/Classes/SwiftImageGallerySaverPlugin.swift +++ b/ios/Classes/SwiftImageGallerySaverPlugin.swift @@ -103,6 +103,11 @@ public class SwiftImageGallerySaverPlugin: NSObject, FlutterPlugin { } } } + // PHAuthorizationStatus restricts access to asset + // save the result otherwise this will result in a never ending await at the flutter side + else { + self.saveResult(isSuccess: false, error: self.errorMessage) + } } else { self.saveResult(isSuccess: false, error: self.errorMessage) } From ce856d0397f5f07fc564dc0eb8c46bd96a4866b8 Mon Sep 17 00:00:00 2001 From: Dick Verweij Date: Tue, 9 Apr 2024 14:12:02 +0200 Subject: [PATCH 2/3] Update SwiftImageGallerySaverPlugin.swift --- ios/Classes/SwiftImageGallerySaverPlugin.swift | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ios/Classes/SwiftImageGallerySaverPlugin.swift b/ios/Classes/SwiftImageGallerySaverPlugin.swift index edc4ee3..afbab76 100644 --- a/ios/Classes/SwiftImageGallerySaverPlugin.swift +++ b/ios/Classes/SwiftImageGallerySaverPlugin.swift @@ -145,6 +145,11 @@ public class SwiftImageGallerySaverPlugin: NSObject, FlutterPlugin { } } } + // PHAuthorizationStatus restricts access to asset + // save the result otherwise this will result in a never ending await at the flutter side + else { + self.saveResult(isSuccess: false, error: self.errorMessage) + } } else { self.saveResult(isSuccess: false, error: self.errorMessage) } From 0941aaf5d4f099d5cfb3f0fb70a3fb1b110284fe Mon Sep 17 00:00:00 2001 From: Dick Verweij Date: Mon, 12 Aug 2024 15:11:04 +0200 Subject: [PATCH 3/3] Update build.gradle --- android/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/build.gradle b/android/build.gradle index b3ee973..843f1f4 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -25,7 +25,7 @@ apply plugin: 'com.android.library' apply plugin: 'kotlin-android' android { - compileSdkVersion 30 + compileSdkVersion 34 sourceSets { main.java.srcDirs += 'src/main/kotlin'