Skip to content

Commit

Permalink
Add permission disable in Podfile
Browse files Browse the repository at this point in the history
  • Loading branch information
abc873693 committed Feb 20, 2021
1 parent 96245f4 commit 9db2a98
Showing 1 changed file with 43 additions and 1 deletion.
44 changes: 43 additions & 1 deletion ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,47 @@ end
post_install do |installer|
installer.pods_project.targets.each do |target|
flutter_additional_ios_build_settings(target)
target.build_configurations.each do |config|
# You can remove unused permissions here
# for more infomation: https://github.com/BaseflowIT/flutter-permission-handler/blob/develop/permission_handler/ios/Classes/PermissionHandlerEnums.h
# e.g. when you don't need camera permission, just add 'PERMISSION_CAMERA=0'
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= [
'$(inherited)',

## dart: PermissionGroup.calendar
'PERMISSION_EVENTS=0',

## dart: PermissionGroup.reminders
'PERMISSION_REMINDERS=0',

## dart: PermissionGroup.contacts
'PERMISSION_CONTACTS=0',

## dart: PermissionGroup.camera
'PERMISSION_CAMERA=0',

## dart: PermissionGroup.microphone
'PERMISSION_MICROPHONE=0',

## dart: PermissionGroup.speech
'PERMISSION_SPEECH_RECOGNIZER=0',

## dart: PermissionGroup.photos
# 'PERMISSION_PHOTOS=0',

## dart: [PermissionGroup.location, PermissionGroup.locationAlways, PermissionGroup.locationWhenInUse]
'PERMISSION_LOCATION=0',

## dart: PermissionGroup.notification
# 'PERMISSION_NOTIFICATIONS=0',

## dart: PermissionGroup.mediaLibrary
'PERMISSION_MEDIA_LIBRARY=0',

## dart: PermissionGroup.sensors
'PERMISSION_SENSORS=0'
]

end
end
end
end

0 comments on commit 9db2a98

Please sign in to comment.