Commit 71db927bed1d65d7409b67d3a3569114a1b8209a

Authored by 权海
1 parent d34cdac8

feat(ci): 更新podfile 适配Permission_handler 插件

Showing 1 changed file with 60 additions and 0 deletions
@@ -52,6 +52,66 @@ post_install do |installer| @@ -52,6 +52,66 @@ post_install do |installer|
52 52
53 target.build_configurations.each do |config| 53 target.build_configurations.each do |config|
54 config.build_settings['ENABLE_USER_SCRIPT_SANDBOXING'] = 'NO' 54 config.build_settings['ENABLE_USER_SCRIPT_SANDBOXING'] = 'NO'
  55 + # You can remove unused permissions here
  56 + # for more information: https://github.com/Baseflow/flutter-permission-handler/blob/main/permission_handler_apple/ios/Classes/PermissionHandlerEnums.h
  57 + # When you don't need a permission, just change its value to 0
  58 + # e.g. 'PERMISSION_CAMERA=0' instead of 'PERMISSION_CAMERA=1'
  59 + config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= [
  60 + '$(inherited)',
  61 +
  62 + ## dart: PermissionGroup.calendar
  63 + #'PERMISSION_EVENTS=1',
  64 +
  65 + ## dart: PermissionGroup.calendarFullAccess
  66 + #'PERMISSION_EVENTS_FULL_ACCESS=1',
  67 +
  68 + ## dart: PermissionGroup.reminders
  69 + #'PERMISSION_REMINDERS=1',
  70 +
  71 + ## dart: PermissionGroup.contacts
  72 + #'PERMISSION_CONTACTS=1',
  73 +
  74 + ## dart: PermissionGroup.camera
  75 + 'PERMISSION_CAMERA=1',
  76 +
  77 + ## dart: PermissionGroup.microphone
  78 + #'PERMISSION_MICROPHONE=1',
  79 +
  80 + ## dart: PermissionGroup.speech
  81 + #'PERMISSION_SPEECH_RECOGNIZER=1',
  82 +
  83 + ## dart: PermissionGroup.photos
  84 + 'PERMISSION_PHOTOS=1',
  85 +
  86 + ## The 'PERMISSION_LOCATION' macro enables the `locationWhenInUse` and `locationAlways` permission. If
  87 + ## the application only requires `locationWhenInUse`, only specify the `PERMISSION_LOCATION_WHENINUSE`
  88 + ## macro.
  89 + ##
  90 + ## dart: [PermissionGroup.location, PermissionGroup.locationAlways, PermissionGroup.locationWhenInUse]
  91 + #'PERMISSION_LOCATION=1',
  92 + #'PERMISSION_LOCATION_WHENINUSE=0',
  93 +
  94 + ## dart: PermissionGroup.notification
  95 + 'PERMISSION_NOTIFICATIONS=1',
  96 +
  97 + ## dart: PermissionGroup.mediaLibrary
  98 + 'PERMISSION_MEDIA_LIBRARY=1',
  99 +
  100 + ## dart: PermissionGroup.sensors
  101 + #'PERMISSION_SENSORS=1',
  102 +
  103 + ## dart: PermissionGroup.bluetooth
  104 + #'PERMISSION_BLUETOOTH=1',
  105 +
  106 + ## dart: PermissionGroup.appTrackingTransparency
  107 + 'PERMISSION_APP_TRACKING_TRANSPARENCY=1',
  108 +
  109 + ## dart: PermissionGroup.criticalAlerts
  110 + #'PERMISSION_CRITICAL_ALERTS=1',
  111 +
  112 + ## dart: PermissionGroup.assistant
  113 + #'PERMISSION_ASSISTANT=1',
  114 + ]
55 end 115 end
56 end 116 end
57 end 117 end