diff --git a/permission_handler/CHANGELOG.md b/permission_handler/CHANGELOG.md index 43c0d8273..1c252ec59 100644 --- a/permission_handler/CHANGELOG.md +++ b/permission_handler/CHANGELOG.md @@ -1,3 +1,7 @@ +## 11.2.1 + +* Adds `PermissionGroup.photosAddOnly` to the README. + ## 11.2.0 * Adds the `Permission.assistant` which allows users to request permissions to access SiriKit on iOS and macOS platforms. This is a no-op on all other platforms. diff --git a/permission_handler/README.md b/permission_handler/README.md index 160341557..b0beb2c24 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 diff --git a/permission_handler/pubspec.yaml b/permission_handler/pubspec.yaml index 5da5b7691..8d497272b 100644 --- a/permission_handler/pubspec.yaml +++ b/permission_handler/pubspec.yaml @@ -2,7 +2,8 @@ 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.2.0 +version: 11.2.1 + environment: sdk: ">=2.15.0 <4.0.0" diff --git a/permission_handler_apple/CHANGELOG.md b/permission_handler_apple/CHANGELOG.md index 1493a3839..ebeafb13c 100644 --- a/permission_handler_apple/CHANGELOG.md +++ b/permission_handler_apple/CHANGELOG.md @@ -1,3 +1,7 @@ +## 9.3.1 + +* Updates plist key from `NSPhotoLibraryUsageDescription` to `NSPhotoLibraryAddUsageDescription`. + ## 9.3.0 * Adds support to request authorization to access SiriKit via the `Permission.assistant` permission. diff --git a/permission_handler_apple/ios/Classes/PermissionHandlerEnums.h b/permission_handler_apple/ios/Classes/PermissionHandlerEnums.h index f84daaab3..015f52d2b 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 diff --git a/permission_handler_apple/pubspec.yaml b/permission_handler_apple/pubspec.yaml index a353c06e5..b916c6f89 100644 --- a/permission_handler_apple/pubspec.yaml +++ b/permission_handler_apple/pubspec.yaml @@ -2,7 +2,8 @@ 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.3.0 +version: 9.3.1 + environment: sdk: ">=2.15.0 <4.0.0"