Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion permission_handler/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ The following lists the relationship between `Permission` and `The key of Info.p
| PermissionGroup.microphone | NSMicrophoneUsageDescription | PERMISSION_MICROPHONE |
| PermissionGroup.speech | NSSpeechRecognitionUsageDescription | PERMISSION_SPEECH_RECOGNIZER |
| PermissionGroup.photos | NSPhotoLibraryUsageDescription | PERMISSION_PHOTOS |
| PermissionGroup.photosAddOnly | NSPhotoLibraryAddUsageDescription | PERMISSION_PHOTOS_ADD_ONLY |
| PermissionGroup.photosAddOnly | NSPhotoLibraryAddUsageDescription | PERMISSION_PHOTOS |
| PermissionGroup.location, PermissionGroup.locationAlways, PermissionGroup.locationWhenInUse | NSLocationUsageDescription, NSLocationAlwaysAndWhenInUseUsageDescription, NSLocationWhenInUseUsageDescription | PERMISSION_LOCATION |
| PermissionGroup.locationWhenInUse | NSLocationWhenInUseUsageDescription | PERMISSION_LOCATION_WHENINUSE |
| PermissionGroup.notification | PermissionGroupNotification | PERMISSION_NOTIFICATIONS |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -664,10 +664,6 @@ let permissionDefines: [CSetting] = [
to: enabled("PERMISSION_PHOTOS",
plistKeys: "NSPhotoLibraryUsageDescription",
"NSPhotoLibraryAddUsageDescription")),
// dart: PermissionGroup.photosAddOnly
.define("PERMISSION_PHOTOS_ADD_ONLY",
to: enabled("PERMISSION_PHOTOS_ADD_ONLY",
plistKeys: "NSPhotoLibraryAddUsageDescription")),
// dart: PermissionGroup.location / locationAlways / locationWhenInUse
.define("PERMISSION_LOCATION",
to: enabled("PERMISSION_LOCATION",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,6 @@
#define PERMISSION_PHOTOS 0
#endif

// ios: PermissionGroupPhotosAddOnly
// Info.plist: NSPhotoLibraryAddUsageDescription
// dart: PermissionGroup.photosAddOnly
#ifndef PERMISSION_PHOTOS_ADD_ONLY
#define PERMISSION_PHOTOS_ADD_ONLY 0
#endif

// ios: [PermissionGroupLocation, PermissionGroupLocationAlways, PermissionGroupLocationWhenInUse]
// Info.plist: [NSLocationUsageDescription, NSLocationAlwaysAndWhenInUseUsageDescription, NSLocationWhenInUseUsageDescription]
// dart: [PermissionGroup.location, PermissionGroup.locationAlways, PermissionGroup.locationWhenInUse]
Expand Down
Loading