Commit a87d3566 by Jan-Derk

Added appTrackingTransparency permission

parent 7307fe0c
## 7.3.0 ## 8.0.0
This release contains the following **breaking changes**:
* Starting from this version the permissions on iOS are disabled by default. To enable a permission, specify the correct `GCC_PREPROCESSOR_DEFINITIONS` in the `ios/Podfile` file. For an example check out the [Podfile](example/ios/Podfile) of the example application.
* Added support for the "AppTrackingTransparency" permission on iOS. * Added support for the "AppTrackingTransparency" permission on iOS.
## 7.2.0 ## 7.2.0
......
...@@ -46,37 +46,43 @@ post_install do |installer| ...@@ -46,37 +46,43 @@ post_install do |installer|
'$(inherited)', '$(inherited)',
## dart: PermissionGroup.calendar ## dart: PermissionGroup.calendar
# 'PERMISSION_EVENTS=0', 'PERMISSION_EVENTS=1',
## dart: PermissionGroup.reminders ## dart: PermissionGroup.reminders
# 'PERMISSION_REMINDERS=0', 'PERMISSION_REMINDERS=1',
## dart: PermissionGroup.contacts ## dart: PermissionGroup.contacts
# 'PERMISSION_CONTACTS=0', 'PERMISSION_CONTACTS=1',
## dart: PermissionGroup.camera ## dart: PermissionGroup.camera
# 'PERMISSION_CAMERA=0', 'PERMISSION_CAMERA=1',
## dart: PermissionGroup.microphone ## dart: PermissionGroup.microphone
# 'PERMISSION_MICROPHONE=0', 'PERMISSION_MICROPHONE=1',
## dart: PermissionGroup.speech ## dart: PermissionGroup.speech
# 'PERMISSION_SPEECH_RECOGNIZER=0', 'PERMISSION_SPEECH_RECOGNIZER=1',
## dart: PermissionGroup.photos ## dart: PermissionGroup.photos
#'PERMISSION_PHOTOS=0' 'PERMISSION_PHOTOS=1',
## dart: [PermissionGroup.location, PermissionGroup.locationAlways, PermissionGroup.locationWhenInUse] ## dart: [PermissionGroup.location, PermissionGroup.locationAlways, PermissionGroup.locationWhenInUse]
# 'PERMISSION_LOCATION=0', 'PERMISSION_LOCATION=1',
## dart: PermissionGroup.notification ## dart: PermissionGroup.notification
# 'PERMISSION_NOTIFICATIONS=0', 'PERMISSION_NOTIFICATIONS=1',
## dart: PermissionGroup.mediaLibrary ## dart: PermissionGroup.mediaLibrary
# 'PERMISSION_MEDIA_LIBRARY=0', 'PERMISSION_MEDIA_LIBRARY=1',
## dart: PermissionGroup.sensors ## dart: PermissionGroup.sensors
# 'PERMISSION_SENSORS=0' 'PERMISSION_SENSORS=1',
## dart: PermissionGroup.bluetooth
'PERMISSION_BLUETOOTH=1',
## dart: PermissionGroup.appTrackingTransparency
'PERMISSION_APP_TRACKING_TRANSPARENCY=1'
] ]
end end
......
...@@ -41,35 +41,63 @@ ...@@ -41,35 +41,63 @@
</array> </array>
<key>UIViewControllerBasedStatusBarAppearance</key> <key>UIViewControllerBasedStatusBarAppearance</key>
<false/> <false/>
<key>NSLocationWhenInUseUsageDescription</key>
<string>Need location when in use</string> <!-- Permission options for the `location` group -->
<key>NSLocationAlwaysAndWhenInUseUsageDescription</key> <key>NSLocationWhenInUseUsageDescription</key>
<string>Always and when in use!</string> <string>Need location when in use</string>
<key>NSLocationUsageDescription</key> <key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
<string>Older devices need location.</string> <string>Always and when in use!</string>
<key>NSLocationAlwaysUsageDescription</key> <key>NSLocationUsageDescription</key>
<string>Can I have location always?</string> <string>Older devices need location.</string>
<key>NSAppleMusicUsageDescription</key> <key>NSLocationAlwaysUsageDescription</key>
<string>Music!</string> <string>Can I have location always?</string>
<key>kTCCServiceMediaLibrary</key>
<string>media</string> <!-- Permission options for the `mediaLibrary` group -->
<key>NSCalendarsUsageDescription</key> <key>NSAppleMusicUsageDescription</key>
<string>Calendars</string> <string>Music!</string>
<key>NSCameraUsageDescription</key> <key>kTCCServiceMediaLibrary</key>
<string>camera</string> <string>media</string>
<key>NSContactsUsageDescription</key>
<string>contacts</string> <!-- Permission options for the `calendar` group -->
<key>NSMicrophoneUsageDescription</key> <key>NSCalendarsUsageDescription</key>
<string>microphone</string> <string>Calendars</string>
<key>NSSpeechRecognitionUsageDescription</key>
<string>speech</string> <!-- Permission options for the `camera` group -->
<key>NSMotionUsageDescription</key> <key>NSCameraUsageDescription</key>
<string>motion</string> <string>camera</string>
<key>NSPhotoLibraryUsageDescription</key>
<string>photos</string> <!-- Permission options for the `contacts` group -->
<key>NSRemindersUsageDescription</key> <key>NSContactsUsageDescription</key>
<string>reminders</string> <string>contacts</string>
<key>NSUserTrackingUsageDescription</key>
<string>appTrackingTransparency</string> <!-- Permission options for the `microphone` group -->
<key>NSMicrophoneUsageDescription</key>
<string>microphone</string>
<!-- Permission options for the `speech` group -->
<key>NSSpeechRecognitionUsageDescription</key>
<string>speech</string>
<!-- Permission options for the `sensors` group -->
<key>NSMotionUsageDescription</key>
<string>motion</string>
<!-- Permission options for the `photos` group -->
<key>NSPhotoLibraryUsageDescription</key>
<string>photos</string>
<!-- Permission options for the `reminder` group -->
<key>NSRemindersUsageDescription</key>
<string>reminders</string>
<!-- Permission options for the `bluetooth` -->
<key>NSBluetoothAlwaysUsageDescription</key>
<string>bluetooth</string>
<key>NSBluetoothPeripheralUsageDescription</key>
<string>bluetooth</string>
<!-- Permission options for the `appTrackingTransparency` -->
<key>NSUserTrackingUsageDescription</key>
<string>appTrackingTransparency</string>
</dict> </dict>
</plist> </plist>
...@@ -9,97 +9,97 @@ ...@@ -9,97 +9,97 @@
// Info.plist: NSCalendarsUsageDescription // Info.plist: NSCalendarsUsageDescription
// dart: PermissionGroup.calendar // dart: PermissionGroup.calendar
#ifndef PERMISSION_EVENTS #ifndef PERMISSION_EVENTS
#define PERMISSION_EVENTS 1 #define PERMISSION_EVENTS 0
#endif #endif
// ios: PermissionGroupReminders // ios: PermissionGroupReminders
// Info.plist: NSRemindersUsageDescription // Info.plist: NSRemindersUsageDescription
// dart: PermissionGroup.reminders // dart: PermissionGroup.reminders
#ifndef PERMISSION_REMINDERS #ifndef PERMISSION_REMINDERS
#define PERMISSION_REMINDERS 1 #define PERMISSION_REMINDERS 0
#endif #endif
// ios: PermissionGroupContacts // ios: PermissionGroupContacts
// Info.plist: NSContactsUsageDescription // Info.plist: NSContactsUsageDescription
// dart: PermissionGroup.contacts // dart: PermissionGroup.contacts
#ifndef PERMISSION_CONTACTS #ifndef PERMISSION_CONTACTS
#define PERMISSION_CONTACTS 1 #define PERMISSION_CONTACTS 0
#endif #endif
// ios: PermissionGroupCamera // ios: PermissionGroupCamera
// Info.plist: NSCameraUsageDescription // Info.plist: NSCameraUsageDescription
// dart: PermissionGroup.camera // dart: PermissionGroup.camera
#ifndef PERMISSION_CAMERA #ifndef PERMISSION_CAMERA
#define PERMISSION_CAMERA 1 #define PERMISSION_CAMERA 0
#endif #endif
// ios: PermissionGroupMicrophone // ios: PermissionGroupMicrophone
// Info.plist: NSMicrophoneUsageDescription // Info.plist: NSMicrophoneUsageDescription
// dart: PermissionGroup.microphone // dart: PermissionGroup.microphone
#ifndef PERMISSION_MICROPHONE #ifndef PERMISSION_MICROPHONE
#define PERMISSION_MICROPHONE 1 #define PERMISSION_MICROPHONE 0
#endif #endif
// ios: PermissionGroupSpeech // ios: PermissionGroupSpeech
// Info.plist: NSSpeechRecognitionUsageDescription // Info.plist: NSSpeechRecognitionUsageDescription
// dart: PermissionGroup.speech // dart: PermissionGroup.speech
#ifndef PERMISSION_SPEECH_RECOGNIZER #ifndef PERMISSION_SPEECH_RECOGNIZER
#define PERMISSION_SPEECH_RECOGNIZER 1 #define PERMISSION_SPEECH_RECOGNIZER 0
#endif #endif
// ios: PermissionGroupPhotos // ios: PermissionGroupPhotos
// Info.plist: NSPhotoLibraryUsageDescription // Info.plist: NSPhotoLibraryUsageDescription
// dart: PermissionGroup.photos // dart: PermissionGroup.photos
#ifndef PERMISSION_PHOTOS #ifndef PERMISSION_PHOTOS
#define PERMISSION_PHOTOS 1 #define PERMISSION_PHOTOS 0
#endif #endif
// ios: PermissionGroupPhotosAddOnly // ios: PermissionGroupPhotosAddOnly
// Info.plist: NSPhotoLibraryUsageDescription // Info.plist: NSPhotoLibraryUsageDescription
// dart: PermissionGroup.photosAddOnly // dart: PermissionGroup.photosAddOnly
#ifndef PERMISSION_PHOTOS_ADD_ONLY #ifndef PERMISSION_PHOTOS_ADD_ONLY
#define PERMISSION_PHOTOS_ADD_ONLY 1 #define PERMISSION_PHOTOS_ADD_ONLY 0
#endif #endif
// ios: [PermissionGroupLocation, PermissionGroupLocationAlways, PermissionGroupLocationWhenInUse] // ios: [PermissionGroupLocation, PermissionGroupLocationAlways, PermissionGroupLocationWhenInUse]
// Info.plist: [NSLocationUsageDescription, NSLocationAlwaysAndWhenInUseUsageDescription, NSLocationWhenInUseUsageDescription] // Info.plist: [NSLocationUsageDescription, NSLocationAlwaysAndWhenInUseUsageDescription, NSLocationWhenInUseUsageDescription]
// dart: [PermissionGroup.location, PermissionGroup.locationAlways, PermissionGroup.locationWhenInUse] // dart: [PermissionGroup.location, PermissionGroup.locationAlways, PermissionGroup.locationWhenInUse]
#ifndef PERMISSION_LOCATION #ifndef PERMISSION_LOCATION
#define PERMISSION_LOCATION 1 #define PERMISSION_LOCATION 0
#endif #endif
// ios: PermissionGroupNotification // ios: PermissionGroupNotification
// dart: PermissionGroup.notification // dart: PermissionGroup.notification
#ifndef PERMISSION_NOTIFICATIONS #ifndef PERMISSION_NOTIFICATIONS
#define PERMISSION_NOTIFICATIONS 1 #define PERMISSION_NOTIFICATIONS 0
#endif #endif
// ios: PermissionGroupMediaLibrary // ios: PermissionGroupMediaLibrary
// Info.plist: [NSAppleMusicUsageDescription, kTCCServiceMediaLibrary] // Info.plist: [NSAppleMusicUsageDescription, kTCCServiceMediaLibrary]
// dart: PermissionGroup.mediaLibrary // dart: PermissionGroup.mediaLibrary
#ifndef PERMISSION_MEDIA_LIBRARY #ifndef PERMISSION_MEDIA_LIBRARY
#define PERMISSION_MEDIA_LIBRARY 1 #define PERMISSION_MEDIA_LIBRARY 0
#endif #endif
// ios: PermissionGroupSensors // ios: PermissionGroupSensors
// Info.plist: NSMotionUsageDescription // Info.plist: NSMotionUsageDescription
// dart: PermissionGroup.sensors // dart: PermissionGroup.sensors
#ifndef PERMISSION_SENSORS #ifndef PERMISSION_SENSORS
#define PERMISSION_SENSORS 1 #define PERMISSION_SENSORS 0
#endif #endif
// ios: PermissionGroupBluetooth // ios: PermissionGroupBluetooth
// Info.plist: [NSBluetoothAlwaysUsageDescription, NSBluetoothPeripheralUsageDescription] // Info.plist: [NSBluetoothAlwaysUsageDescription, NSBluetoothPeripheralUsageDescription]
// dart: PermissionGroup.bluetooth // dart: PermissionGroup.bluetooth
#ifndef PERMISSION_BLUETOOTH #ifndef PERMISSION_BLUETOOTH
#define PERMISSION_BLUETOOTH 1 #define PERMISSION_BLUETOOTH 0
#endif #endif
// ios: PermissionGroupAppTrackingTransparency // ios: PermissionGroupAppTrackingTransparency
// Info.plist: [NSUserTrackingUsageDescription] // Info.plist: [NSUserTrackingUsageDescription]
// dart: PermissionGroup.appTrackingTransparency // dart: PermissionGroup.appTrackingTransparency
#ifndef PERMISSION_APP_TRACKING_TRANSPARENCY #ifndef PERMISSION_APP_TRACKING_TRANSPARENCY
#define PERMISSION_APP_TRACKING_TRANSPARENCY 1 #define PERMISSION_APP_TRACKING_TRANSPARENCY 0
#endif #endif
typedef NS_ENUM(int, PermissionGroup) { typedef NS_ENUM(int, PermissionGroup) {
......
name: permission_handler name: permission_handler
description: Permission plugin for Flutter. This plugin provides a cross-platform (iOS, Android) API to request and check permissions. description: Permission plugin for Flutter. This plugin provides a cross-platform (iOS, Android) API to request and check permissions.
version: 7.3.0 version: 8.0.0
homepage: https://github.com/baseflowit/flutter-permission-handler homepage: https://github.com/baseflowit/flutter-permission-handler
flutter: flutter:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment