From 9b08bb236ad10e2c318c2921daf6eb0ba78cc1f3 Mon Sep 17 00:00:00 2001 From: jachzen Date: Tue, 7 Nov 2023 14:27:43 +0100 Subject: [PATCH] * Added permission handling iOS example * updated dependencies --- example/ios/Podfile | 23 +++++++++++++++++++++++ example/ios/Podfile.lock | 18 +++++++++--------- example/pubspec.lock | 10 +++++----- pubspec.yaml | 2 +- 4 files changed, 38 insertions(+), 15 deletions(-) diff --git a/example/ios/Podfile b/example/ios/Podfile index 10f3c9b..cdaa6d6 100644 --- a/example/ios/Podfile +++ b/example/ios/Podfile @@ -37,5 +37,28 @@ 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 enable the permissions needed here. For example to enable camera + # permission, just remove the `#` character in front so it looks like this: + # + # ## dart: PermissionGroup.camera + # 'PERMISSION_CAMERA=1' + # + # Preprocessor definitions can be found in: https://github.com/Baseflow/flutter-permission-handler/blob/master/permission_handler_apple/ios/Classes/PermissionHandlerEnums.h + config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= [ + '$(inherited)', + + ## dart: PermissionGroup.calendar + # 'PERMISSION_EVENTS=1', + + ## dart: PermissionGroup.reminders + # 'PERMISSION_REMINDERS=1', + + ## dart: PermissionGroup.contacts + # 'PERMISSION_CONTACTS=1', + + ## dart: PermissionGroup.camera + 'PERMISSION_CAMERA=1'] + end end end diff --git a/example/ios/Podfile.lock b/example/ios/Podfile.lock index b246075..ddd3206 100644 --- a/example/ios/Podfile.lock +++ b/example/ios/Podfile.lock @@ -4,14 +4,14 @@ PODS: - Flutter (1.0.0) - path_provider_ios (0.0.1): - Flutter - - "permission_handler (5.1.0+2)": + - permission_handler_apple (9.1.1): - Flutter DEPENDENCIES: - cunning_document_scanner (from `.symlinks/plugins/cunning_document_scanner/ios`) - Flutter (from `Flutter`) - path_provider_ios (from `.symlinks/plugins/path_provider_ios/ios`) - - permission_handler (from `.symlinks/plugins/permission_handler/ios`) + - permission_handler_apple (from `.symlinks/plugins/permission_handler_apple/ios`) EXTERNAL SOURCES: cunning_document_scanner: @@ -20,15 +20,15 @@ EXTERNAL SOURCES: :path: Flutter path_provider_ios: :path: ".symlinks/plugins/path_provider_ios/ios" - permission_handler: - :path: ".symlinks/plugins/permission_handler/ios" + permission_handler_apple: + :path: ".symlinks/plugins/permission_handler_apple/ios" SPEC CHECKSUMS: cunning_document_scanner: 7cb9bd173f7cc7b11696dde98d01492187fc3a67 - Flutter: 50d75fe2f02b26cc09d224853bb45737f8b3214a - path_provider_ios: 7d7ce634493af4477d156294792024ec3485acd5 - permission_handler: ccb20a9fad0ee9b1314a52b70b76b473c5f8dab0 + Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854 + path_provider_ios: 14f3d2fd28c4fdb42f44e0f751d12861c43cee02 + permission_handler_apple: e76247795d700c14ea09e3a2d8855d41ee80a2e6 -PODFILE CHECKSUM: cc1f88378b4bfcf93a6ce00d2c587857c6008d3b +PODFILE CHECKSUM: e78c989774f3b5b54daf69ce13097109fe4b0da3 -COCOAPODS: 1.11.2 +COCOAPODS: 1.12.1 diff --git a/example/pubspec.lock b/example/pubspec.lock index 8882b15..50f5b1b 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -178,35 +178,35 @@ packages: name: permission_handler url: "https://pub.dartlang.org" source: hosted - version: "10.0.0" + version: "11.0.1" permission_handler_android: dependency: transitive description: name: permission_handler_android url: "https://pub.dartlang.org" source: hosted - version: "10.0.0" + version: "11.1.0" permission_handler_apple: dependency: transitive description: name: permission_handler_apple url: "https://pub.dartlang.org" source: hosted - version: "9.0.4" + version: "9.1.4" permission_handler_platform_interface: dependency: transitive description: name: permission_handler_platform_interface url: "https://pub.dartlang.org" source: hosted - version: "3.7.0" + version: "3.12.0" permission_handler_windows: dependency: transitive description: name: permission_handler_windows url: "https://pub.dartlang.org" source: hosted - version: "0.1.0" + version: "0.1.3" platform: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index 9f918ea..6be9fef 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -11,7 +11,7 @@ environment: dependencies: flutter: sdk: flutter - permission_handler: ^10.0.0 + permission_handler: ^11.0.0 dev_dependencies: flutter_test: