From 281ceae9e53395c7cd44840bf0657b9b568e0770 Mon Sep 17 00:00:00 2001 From: bluesea <307723040@qq.com> Date: Tue, 14 May 2024 17:59:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=9D=E5=AD=98=E7=9B=B8=E5=86=8Cios?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wallpaper/ios/Podfile | 26 +++++++++++++++++++++++++- wallpaper/ios/Podfile.lock | 2 +- wallpaper/ios/Runner/Info.plist | 10 ++++++---- 3 files changed, 32 insertions(+), 6 deletions(-) diff --git a/wallpaper/ios/Podfile b/wallpaper/ios/Podfile index d97f17e..0c13327 100644 --- a/wallpaper/ios/Podfile +++ b/wallpaper/ios/Podfile @@ -37,8 +37,32 @@ target 'Runner' do end end +# post_install do |installer| +# installer.pods_project.targets.each do |target| +# flutter_additional_ios_build_settings(target) +# end +# 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 information: https://github.com/BaseflowIT/flutter-permission-handler/blob/master/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.photos + 'PERMISSION_PHOTOS=1', + + + ] + + end end -end +end \ No newline at end of file diff --git a/wallpaper/ios/Podfile.lock b/wallpaper/ios/Podfile.lock index ce7cca5..0fc5b94 100644 --- a/wallpaper/ios/Podfile.lock +++ b/wallpaper/ios/Podfile.lock @@ -36,6 +36,6 @@ SPEC CHECKSUMS: path_provider_foundation: 2b6b4c569c0fb62ec74538f866245ac84301af46 permission_handler_apple: e76247795d700c14ea09e3a2d8855d41ee80a2e6 -PODFILE CHECKSUM: 819463e6a0290f5a72f145ba7cde16e8b6ef0796 +PODFILE CHECKSUM: a0df7e3091f158493c8ac16f764652bd94d7b70c COCOAPODS: 1.15.2 diff --git a/wallpaper/ios/Runner/Info.plist b/wallpaper/ios/Runner/Info.plist index 1ef34f9..c2144a6 100644 --- a/wallpaper/ios/Runner/Info.plist +++ b/wallpaper/ios/Runner/Info.plist @@ -2,6 +2,8 @@ + CADisableMinimumFrameDurationOnPhone + CFBundleDevelopmentRegion $(DEVELOPMENT_LANGUAGE) CFBundleDisplayName @@ -24,6 +26,10 @@ $(FLUTTER_BUILD_NUMBER) LSRequiresIPhoneOS + NSPhotoLibraryAddUsageDescription + 我们想要访问您的相册,以便将壁纸图片存入相册 + UIApplicationSupportsIndirectInputEvents + UILaunchStoryboardName LaunchScreen UIMainStoryboardFile @@ -41,9 +47,5 @@ UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight - CADisableMinimumFrameDurationOnPhone - - UIApplicationSupportsIndirectInputEvents -