From d6638d4a33644a04fe2b4442f64e82d39bcf5627 Mon Sep 17 00:00:00 2001 From: Christian Navolskyi <11958454+ChristianNavolskyi@users.noreply.github.com> Date: Fri, 29 Dec 2023 16:24:12 +0100 Subject: [PATCH 1/7] Added comment in Podfile for NSPhotoLibraryAddUsageDescription --- permission_handler/README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/permission_handler/README.md b/permission_handler/README.md index 68dfd199c..7f680f7fa 100644 --- a/permission_handler/README.md +++ b/permission_handler/README.md @@ -107,6 +107,9 @@ You must list the permission you want to use in your application: ## dart: PermissionGroup.photos # 'PERMISSION_PHOTOS=1', + ## dart: PermissionGroup.photosAddOnly + # 'PERMISSION_PHOTOS_ADD_ONLY=1', + ## dart: [PermissionGroup.location, PermissionGroup.locationAlways, PermissionGroup.locationWhenInUse] # 'PERMISSION_LOCATION=1', @@ -157,6 +160,7 @@ You must list the permission you want to use in your application: | PermissionGroup.microphone | NSMicrophoneUsageDescription | PERMISSION_MICROPHONE | | PermissionGroup.speech | NSSpeechRecognitionUsageDescription | PERMISSION_SPEECH_RECOGNIZER | | PermissionGroup.photos | NSPhotoLibraryUsageDescription | PERMISSION_PHOTOS | +| PermissionGroup.photosAddOnly | NSPhotoLibraryAddUsageDescription | PERMISSION_PHOTOS_ADD_ONLY | | PermissionGroup.location, PermissionGroup.locationAlways, PermissionGroup.locationWhenInUse | NSLocationUsageDescription, NSLocationAlwaysAndWhenInUseUsageDescription, NSLocationWhenInUseUsageDescription | PERMISSION_LOCATION | | PermissionGroup.notification | PermissionGroupNotification | PERMISSION_NOTIFICATIONS | | PermissionGroup.mediaLibrary | NSAppleMusicUsageDescription, kTCCServiceMedia From 9a06ce1cfc5455226a061c564ba84a016b7d73e6 Mon Sep 17 00:00:00 2001 From: Christian Navolskyi Date: Fri, 29 Dec 2023 16:28:53 +0100 Subject: [PATCH 2/7] fix photosAddOnly key for info.plist --- permission_handler_apple/ios/Classes/PermissionHandlerEnums.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/permission_handler_apple/ios/Classes/PermissionHandlerEnums.h b/permission_handler_apple/ios/Classes/PermissionHandlerEnums.h index 8c3f916e3..5ba3f504f 100644 --- a/permission_handler_apple/ios/Classes/PermissionHandlerEnums.h +++ b/permission_handler_apple/ios/Classes/PermissionHandlerEnums.h @@ -55,7 +55,7 @@ #endif // ios: PermissionGroupPhotosAddOnly -// Info.plist: NSPhotoLibraryUsageDescription +// Info.plist: NSPhotoLibraryAddUsageDescription // dart: PermissionGroup.photosAddOnly #ifndef PERMISSION_PHOTOS_ADD_ONLY #define PERMISSION_PHOTOS_ADD_ONLY 0 From 6554dadcd1ca0c1622dd41a82edd8d4dfd32ec47 Mon Sep 17 00:00:00 2001 From: tim Hoogstrate Date: Thu, 8 Feb 2024 10:29:41 +0100 Subject: [PATCH 3/7] Added new versions --- permission_handler/CHANGELOG.md | 3 +++ permission_handler/pubspec.yaml | 2 +- permission_handler_apple/CHANGELOG.md | 3 +++ permission_handler_apple/pubspec.yaml | 2 +- 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/permission_handler/CHANGELOG.md b/permission_handler/CHANGELOG.md index 330b516ff..6b438c651 100644 --- a/permission_handler/CHANGELOG.md +++ b/permission_handler/CHANGELOG.md @@ -1,3 +1,6 @@ +## 11.1.1 +* Adds `PermissionGroup.photosAddOnly` to the README. + ## 11.1.0 * Adds support for iOS 17+ [Calendar access levels](https://developer.apple.com/documentation/technotes/tn3152-migrating-to-the-latest-calendar-access-levels). * Deprecates `Permission.calendar`. Use `Permission.calendarWriteOnly` to request a write-only access to the calendar. For full access to calendar use `Permission.calendarFullAccess`. diff --git a/permission_handler/pubspec.yaml b/permission_handler/pubspec.yaml index c14eda0b9..bfdc3c8ca 100644 --- a/permission_handler/pubspec.yaml +++ b/permission_handler/pubspec.yaml @@ -2,7 +2,7 @@ name: permission_handler description: Permission plugin for Flutter. This plugin provides a cross-platform (iOS, Android) API to request and check permissions. repository: https://github.com/baseflow/flutter-permission-handler issue_tracker: https://github.com/Baseflow/flutter-permission-handler/issues -version: 11.1.0 +version: 11.1.1 environment: sdk: ">=2.15.0 <4.0.0" diff --git a/permission_handler_apple/CHANGELOG.md b/permission_handler_apple/CHANGELOG.md index 9ec7941f5..e1a91a983 100644 --- a/permission_handler_apple/CHANGELOG.md +++ b/permission_handler_apple/CHANGELOG.md @@ -1,3 +1,6 @@ +## 9.2.1 +* Updates plist key from `NSPhotoLibraryUsageDescription` to `NSPhotoLibraryAddUsageDescription`. + ## 9.2.0 * Adds the support for `Permission.calendarWriteOnly` and `Permission.calendarFullAccess` permissions which are introduced in iOS 17+. diff --git a/permission_handler_apple/pubspec.yaml b/permission_handler_apple/pubspec.yaml index 7ce19b3f2..3272f8f13 100644 --- a/permission_handler_apple/pubspec.yaml +++ b/permission_handler_apple/pubspec.yaml @@ -2,7 +2,7 @@ name: permission_handler_apple description: Permission plugin for Flutter. This plugin provides the iOS API to request and check permissions. repository: https://github.com/baseflow/flutter-permission-handler issue_tracker: https://github.com/Baseflow/flutter-permission-handler/issues -version: 9.2.0 +version: 9.2.1 environment: sdk: ">=2.15.0 <4.0.0" From 64d7950cc35a19c4c32806c9ddf0a3cdedeae96c Mon Sep 17 00:00:00 2001 From: Maurits van Beusekom Date: Thu, 8 Feb 2024 10:41:47 +0100 Subject: [PATCH 4/7] Update permission_handler/CHANGELOG.md --- permission_handler/CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/permission_handler/CHANGELOG.md b/permission_handler/CHANGELOG.md index 6b438c651..fe436a19f 100644 --- a/permission_handler/CHANGELOG.md +++ b/permission_handler/CHANGELOG.md @@ -2,6 +2,7 @@ * Adds `PermissionGroup.photosAddOnly` to the README. ## 11.1.0 + * Adds support for iOS 17+ [Calendar access levels](https://developer.apple.com/documentation/technotes/tn3152-migrating-to-the-latest-calendar-access-levels). * Deprecates `Permission.calendar`. Use `Permission.calendarWriteOnly` to request a write-only access to the calendar. For full access to calendar use `Permission.calendarFullAccess`. * For `Permission.calendarFullAccess` on iOS 17+ use `PERMISSION_EVENTS_FULL_ACCESS` in Podfile instead of `PERMISSION_EVENTS`. From 8bb689d8268cc952bb07063d459e14ffc804f1fc Mon Sep 17 00:00:00 2001 From: Maurits van Beusekom Date: Thu, 8 Feb 2024 10:41:52 +0100 Subject: [PATCH 5/7] Update permission_handler/CHANGELOG.md --- permission_handler/CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/permission_handler/CHANGELOG.md b/permission_handler/CHANGELOG.md index fe436a19f..abde9a653 100644 --- a/permission_handler/CHANGELOG.md +++ b/permission_handler/CHANGELOG.md @@ -1,4 +1,5 @@ ## 11.1.1 + * Adds `PermissionGroup.photosAddOnly` to the README. ## 11.1.0 From 6242a4080358e10afdc93247f3e09a42312e430a Mon Sep 17 00:00:00 2001 From: Maurits van Beusekom Date: Thu, 8 Feb 2024 10:41:56 +0100 Subject: [PATCH 6/7] Update permission_handler_apple/CHANGELOG.md --- permission_handler_apple/CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/permission_handler_apple/CHANGELOG.md b/permission_handler_apple/CHANGELOG.md index e1a91a983..7926a01b1 100644 --- a/permission_handler_apple/CHANGELOG.md +++ b/permission_handler_apple/CHANGELOG.md @@ -1,4 +1,5 @@ ## 9.2.1 + * Updates plist key from `NSPhotoLibraryUsageDescription` to `NSPhotoLibraryAddUsageDescription`. ## 9.2.0 From 5129a6ddc0484a7d3286fbab4404958cd48a960c Mon Sep 17 00:00:00 2001 From: Maurits van Beusekom Date: Thu, 8 Feb 2024 10:42:01 +0100 Subject: [PATCH 7/7] Update permission_handler_apple/CHANGELOG.md --- permission_handler_apple/CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/permission_handler_apple/CHANGELOG.md b/permission_handler_apple/CHANGELOG.md index 7926a01b1..b3b6d64d6 100644 --- a/permission_handler_apple/CHANGELOG.md +++ b/permission_handler_apple/CHANGELOG.md @@ -3,6 +3,7 @@ * Updates plist key from `NSPhotoLibraryUsageDescription` to `NSPhotoLibraryAddUsageDescription`. ## 9.2.0 + * Adds the support for `Permission.calendarWriteOnly` and `Permission.calendarFullAccess` permissions which are introduced in iOS 17+. ## 9.1.4