diff --git a/permission_handler/README.md b/permission_handler/README.md index b47df7b6a..bac3d7395 100644 --- a/permission_handler/README.md +++ b/permission_handler/README.md @@ -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 | diff --git a/permission_handler_apple/ios/permission_handler_apple/Package.swift b/permission_handler_apple/ios/permission_handler_apple/Package.swift index 6ca1b7527..56fafbf6f 100644 --- a/permission_handler_apple/ios/permission_handler_apple/Package.swift +++ b/permission_handler_apple/ios/permission_handler_apple/Package.swift @@ -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", diff --git a/permission_handler_apple/ios/permission_handler_apple/Sources/permission_handler_apple/PermissionHandlerEnums.h b/permission_handler_apple/ios/permission_handler_apple/Sources/permission_handler_apple/PermissionHandlerEnums.h index 69cf6620c..9a8211ea2 100644 --- a/permission_handler_apple/ios/permission_handler_apple/Sources/permission_handler_apple/PermissionHandlerEnums.h +++ b/permission_handler_apple/ios/permission_handler_apple/Sources/permission_handler_apple/PermissionHandlerEnums.h @@ -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]