Kaynağa Gözat

feat: 移除 ios info.plist 中不必要的权限

f-dev 1 hafta önce
ebeveyn
işleme
b7ef6aa699
1 değiştirilmiş dosya ile 7 ekleme ve 12 silme
  1. 7 12
      ios/Runner/Info.plist

+ 7 - 12
ios/Runner/Info.plist

@@ -23,7 +23,7 @@
 		<key>CFBundleVersion</key>
 		<string>$(FLUTTER_BUILD_NUMBER)</string>
 		<key>LSRequiresIPhoneOS</key>
-		<true/>
+		<true />
 		<key>UILaunchStoryboardName</key>
 		<string>LaunchScreen</string>
 		<key>UIMainStoryboardFile</key>
@@ -42,11 +42,11 @@
 			<string>UIInterfaceOrientationLandscapeRight</string>
 		</array>
 		<key>CADisableMinimumFrameDurationOnPhone</key>
-		<true/>
+		<true />
 		<key>UIApplicationSupportsIndirectInputEvents</key>
-		<true/>
+		<true />
 		<key>UIStatusBarHidden</key>
-		<false/>
+		<false />
 		<key>NSPhotoLibraryAddUsageDescription</key>
 		<string>We need access to save your Pre Code image to your photo library.</string>
 		<key>NSPhotoLibraryUsageDescription</key>
@@ -55,14 +55,9 @@
 		<key>NSAppTransportSecurity</key>
 		<dict>
 			<key>NSAllowsArbitraryLoads</key>
-			<true/>
+			<true />
 			<key>NSAllowsLocalNetworking</key>
-			<true/>
+			<true />
 		</dict>
-		<!-- WebView 可能需要的相机和麦克风权限 -->
-		<key>NSCameraUsageDescription</key>
-		<string>This app needs camera access to use camera features in web pages.</string>
-		<key>NSMicrophoneUsageDescription</key>
-		<string>This app needs microphone access to use audio features in web pages.</string>
 	</dict>
-</plist>
+</plist>