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 -