Skip to content

Commit 669aff8

Browse files
c15yiTimHoogstratemvanbeusekom
authored
Add photosAddOnly setup for iOS to Podfile in README (#1254)
* Added comment in Podfile for NSPhotoLibraryAddUsageDescription * fix photosAddOnly key for info.plist * Added new versions * Update permission_handler/CHANGELOG.md * Update permission_handler/CHANGELOG.md * Update permission_handler_apple/CHANGELOG.md * Update permission_handler_apple/CHANGELOG.md --------- Co-authored-by: tim Hoogstrate <tim566@hotmail.com> Co-authored-by: Maurits van Beusekom <maurits@baseflow.com> Co-authored-by: Maurits van Beusekom <maurits@vnbskm.nl>
1 parent ab441e1 commit 669aff8

File tree

6 files changed

+17
-3
lines changed

6 files changed

+17
-3
lines changed

permission_handler/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 11.2.1
2+
3+
* Adds `PermissionGroup.photosAddOnly` to the README.
4+
15
## 11.2.0
26

37
* 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.

permission_handler/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,9 @@ You must list the permission you want to use in your application:
107107
## dart: PermissionGroup.photos
108108
# 'PERMISSION_PHOTOS=1',
109109

110+
## dart: PermissionGroup.photosAddOnly
111+
# 'PERMISSION_PHOTOS_ADD_ONLY=1',
112+
110113
## dart: [PermissionGroup.location, PermissionGroup.locationAlways, PermissionGroup.locationWhenInUse]
111114
# 'PERMISSION_LOCATION=1',
112115

@@ -157,6 +160,7 @@ You must list the permission you want to use in your application:
157160
| PermissionGroup.microphone | NSMicrophoneUsageDescription | PERMISSION_MICROPHONE |
158161
| PermissionGroup.speech | NSSpeechRecognitionUsageDescription | PERMISSION_SPEECH_RECOGNIZER |
159162
| PermissionGroup.photos | NSPhotoLibraryUsageDescription | PERMISSION_PHOTOS |
163+
| PermissionGroup.photosAddOnly | NSPhotoLibraryAddUsageDescription | PERMISSION_PHOTOS_ADD_ONLY |
160164
| PermissionGroup.location, PermissionGroup.locationAlways, PermissionGroup.locationWhenInUse | NSLocationUsageDescription, NSLocationAlwaysAndWhenInUseUsageDescription, NSLocationWhenInUseUsageDescription | PERMISSION_LOCATION |
161165
| PermissionGroup.notification | PermissionGroupNotification | PERMISSION_NOTIFICATIONS |
162166
| PermissionGroup.mediaLibrary | NSAppleMusicUsageDescription, kTCCServiceMedia

permission_handler/pubspec.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ name: permission_handler
22
description: Permission plugin for Flutter. This plugin provides a cross-platform (iOS, Android) API to request and check permissions.
33
repository: https://github.com/baseflow/flutter-permission-handler
44
issue_tracker: https://github.com/Baseflow/flutter-permission-handler/issues
5-
version: 11.2.0
5+
version: 11.2.1
6+
67

78
environment:
89
sdk: ">=2.15.0 <4.0.0"

permission_handler_apple/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 9.3.1
2+
3+
* Updates plist key from `NSPhotoLibraryUsageDescription` to `NSPhotoLibraryAddUsageDescription`.
4+
15
## 9.3.0
26

37
* Adds support to request authorization to access SiriKit via the `Permission.assistant` permission.

permission_handler_apple/ios/Classes/PermissionHandlerEnums.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
#endif
5656

5757
// ios: PermissionGroupPhotosAddOnly
58-
// Info.plist: NSPhotoLibraryUsageDescription
58+
// Info.plist: NSPhotoLibraryAddUsageDescription
5959
// dart: PermissionGroup.photosAddOnly
6060
#ifndef PERMISSION_PHOTOS_ADD_ONLY
6161
#define PERMISSION_PHOTOS_ADD_ONLY 0

permission_handler_apple/pubspec.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ name: permission_handler_apple
22
description: Permission plugin for Flutter. This plugin provides the iOS API to request and check permissions.
33
repository: https://github.com/baseflow/flutter-permission-handler
44
issue_tracker: https://github.com/Baseflow/flutter-permission-handler/issues
5-
version: 9.3.0
5+
version: 9.3.1
6+
67

78
environment:
89
sdk: ">=2.15.0 <4.0.0"

0 commit comments

Comments
 (0)