浏览代码

iOS端修改权限和版本CFBundleShortVersionString

jiangwei 3 天之前
父节点
当前提交
e3232259b2
共有 3 个文件被更改,包括 27 次插入23 次删除
  1. 21 13
      app/ios/Runner.xcodeproj/project.pbxproj
  2. 5 7
      app/ios/Runner/Info.plist
  3. 1 3
      app/ios/Runner/Runner.entitlements

+ 21 - 13
app/ios/Runner.xcodeproj/project.pbxproj

@@ -13,7 +13,7 @@
 		4F73B2B32C36925F00950271 /* GradientView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4F73B2B22C36925F00950271 /* GradientView.swift */; };
 		4F73B2B32C36925F00950271 /* GradientView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4F73B2B22C36925F00950271 /* GradientView.swift */; };
 		665B26D52C4A187100075D68 /* LaunchBG@3x.png in Resources */ = {isa = PBXBuildFile; fileRef = 665B26D32C4A187100075D68 /* LaunchBG@3x.png */; };
 		665B26D52C4A187100075D68 /* LaunchBG@3x.png in Resources */ = {isa = PBXBuildFile; fileRef = 665B26D32C4A187100075D68 /* LaunchBG@3x.png */; };
 		665B26D62C4A187100075D68 /* LaunchBG@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 665B26D42C4A187100075D68 /* LaunchBG@2x.png */; };
 		665B26D62C4A187100075D68 /* LaunchBG@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 665B26D42C4A187100075D68 /* LaunchBG@2x.png */; };
-		66BAA2A02DDED3C10095CF73 /* GoogleService-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = 66BAA29F2DDED3C10095CF73 /* GoogleService-Info.plist */; };
+		6688536E2E27949E00FD8BB8 /* GoogleService-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = 6688536D2E27949E00FD8BB8 /* GoogleService-Info.plist */; };
 		74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
 		74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
 		77F6D3242AE26F2C006D74CD /* AuthenticationServices.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 77F6D3222AE26F25006D74CD /* AuthenticationServices.framework */; };
 		77F6D3242AE26F2C006D74CD /* AuthenticationServices.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 77F6D3222AE26F25006D74CD /* AuthenticationServices.framework */; };
 		97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
 		97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
@@ -37,7 +37,7 @@
 		665B26D42C4A187100075D68 /* LaunchBG@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "LaunchBG@2x.png"; sourceTree = "<group>"; };
 		665B26D42C4A187100075D68 /* LaunchBG@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "LaunchBG@2x.png"; sourceTree = "<group>"; };
 		66679C9D2C60DBF80037EB3A /* vi */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = vi; path = vi.lproj/Main.strings; sourceTree = "<group>"; };
 		66679C9D2C60DBF80037EB3A /* vi */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = vi; path = vi.lproj/Main.strings; sourceTree = "<group>"; };
 		66679C9E2C60DBF80037EB3A /* vi */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = vi; path = vi.lproj/LaunchScreen.strings; sourceTree = "<group>"; };
 		66679C9E2C60DBF80037EB3A /* vi */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = vi; path = vi.lproj/LaunchScreen.strings; sourceTree = "<group>"; };
-		66BAA29F2DDED3C10095CF73 /* GoogleService-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "GoogleService-Info.plist"; sourceTree = "<group>"; };
+		6688536D2E27949E00FD8BB8 /* GoogleService-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "GoogleService-Info.plist"; sourceTree = "<group>"; };
 		74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = "<group>"; };
 		74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = "<group>"; };
 		74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
 		74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
 		776500082ABD7998008C323B /* Runner.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = Runner.entitlements; sourceTree = "<group>"; };
 		776500082ABD7998008C323B /* Runner.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = Runner.entitlements; sourceTree = "<group>"; };
@@ -124,7 +124,7 @@
 				4F73B2B22C36925F00950271 /* GradientView.swift */,
 				4F73B2B22C36925F00950271 /* GradientView.swift */,
 				97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
 				97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
 				97C147021CF9000F007C117D /* Info.plist */,
 				97C147021CF9000F007C117D /* Info.plist */,
-				66BAA29F2DDED3C10095CF73 /* GoogleService-Info.plist */,
+				6688536D2E27949E00FD8BB8 /* GoogleService-Info.plist */,
 				1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
 				1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
 				1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
 				1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
 				74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
 				74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
@@ -207,7 +207,7 @@
 				3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
 				3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
 				97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
 				97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
 				97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
 				97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
-				66BAA2A02DDED3C10095CF73 /* GoogleService-Info.plist in Resources */,
+				6688536E2E27949E00FD8BB8 /* GoogleService-Info.plist in Resources */,
 			);
 			);
 			runOnlyForDeploymentPostprocessing = 0;
 			runOnlyForDeploymentPostprocessing = 0;
 		};
 		};
@@ -275,10 +275,14 @@
 			inputFileListPaths = (
 			inputFileListPaths = (
 				"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-input-files.xcfilelist",
 				"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-input-files.xcfilelist",
 			);
 			);
+			inputPaths = (
+			);
 			name = "[CP] Copy Pods Resources";
 			name = "[CP] Copy Pods Resources";
 			outputFileListPaths = (
 			outputFileListPaths = (
 				"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-output-files.xcfilelist",
 				"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-output-files.xcfilelist",
 			);
 			);
+			outputPaths = (
+			);
 			runOnlyForDeploymentPostprocessing = 0;
 			runOnlyForDeploymentPostprocessing = 0;
 			shellPath = /bin/sh;
 			shellPath = /bin/sh;
 			shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources.sh\"\n";
 			shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources.sh\"\n";
@@ -292,10 +296,14 @@
 			inputFileListPaths = (
 			inputFileListPaths = (
 				"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist",
 				"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist",
 			);
 			);
+			inputPaths = (
+			);
 			name = "[CP] Embed Pods Frameworks";
 			name = "[CP] Embed Pods Frameworks";
 			outputFileListPaths = (
 			outputFileListPaths = (
 				"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist",
 				"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist",
 			);
 			);
+			outputPaths = (
+			);
 			runOnlyForDeploymentPostprocessing = 0;
 			runOnlyForDeploymentPostprocessing = 0;
 			shellPath = /bin/sh;
 			shellPath = /bin/sh;
 			shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
 			shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
@@ -400,8 +408,8 @@
 				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
 				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
 				CLANG_ENABLE_MODULES = YES;
 				CLANG_ENABLE_MODULES = YES;
 				CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
 				CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
-				CURRENT_PROJECT_VERSION = 1.0;
-				DEVELOPMENT_TEAM = CW4J9W8LB6;
+				CURRENT_PROJECT_VERSION = 1.0.0;
+				DEVELOPMENT_TEAM = ZRFCPCSUJK;
 				ENABLE_BITCODE = NO;
 				ENABLE_BITCODE = NO;
 				FLUTTER_BUILD_MODE = profile;
 				FLUTTER_BUILD_MODE = profile;
 				INFOPLIST_FILE = Runner/Info.plist;
 				INFOPLIST_FILE = Runner/Info.plist;
@@ -411,7 +419,7 @@
 					"$(inherited)",
 					"$(inherited)",
 					"@executable_path/Frameworks",
 					"@executable_path/Frameworks",
 				);
 				);
-				MARKETING_VERSION = 1.0;
+				MARKETING_VERSION = 1.0.0;
 				PRODUCT_BUNDLE_IDENTIFIER = com.hongyegroup.app24ifm;
 				PRODUCT_BUNDLE_IDENTIFIER = com.hongyegroup.app24ifm;
 				PRODUCT_NAME = "$(TARGET_NAME)";
 				PRODUCT_NAME = "$(TARGET_NAME)";
 				SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
 				SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
@@ -541,8 +549,8 @@
 				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
 				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
 				CLANG_ENABLE_MODULES = YES;
 				CLANG_ENABLE_MODULES = YES;
 				CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
 				CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
-				CURRENT_PROJECT_VERSION = 1.0;
-				DEVELOPMENT_TEAM = CW4J9W8LB6;
+				CURRENT_PROJECT_VERSION = 1.0.0;
+				DEVELOPMENT_TEAM = ZRFCPCSUJK;
 				ENABLE_BITCODE = NO;
 				ENABLE_BITCODE = NO;
 				FLUTTER_BUILD_MODE = debug;
 				FLUTTER_BUILD_MODE = debug;
 				INFOPLIST_FILE = Runner/Info.plist;
 				INFOPLIST_FILE = Runner/Info.plist;
@@ -552,7 +560,7 @@
 					"$(inherited)",
 					"$(inherited)",
 					"@executable_path/Frameworks",
 					"@executable_path/Frameworks",
 				);
 				);
-				MARKETING_VERSION = 1.0;
+				MARKETING_VERSION = 1.0.0;
 				PRODUCT_BUNDLE_IDENTIFIER = com.hongyegroup.app24ifm;
 				PRODUCT_BUNDLE_IDENTIFIER = com.hongyegroup.app24ifm;
 				PRODUCT_NAME = "$(TARGET_NAME)";
 				PRODUCT_NAME = "$(TARGET_NAME)";
 				SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
 				SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
@@ -574,8 +582,8 @@
 				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
 				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
 				CLANG_ENABLE_MODULES = YES;
 				CLANG_ENABLE_MODULES = YES;
 				CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
 				CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
-				CURRENT_PROJECT_VERSION = 1.0;
-				DEVELOPMENT_TEAM = CW4J9W8LB6;
+				CURRENT_PROJECT_VERSION = 1.0.0;
+				DEVELOPMENT_TEAM = ZRFCPCSUJK;
 				ENABLE_BITCODE = NO;
 				ENABLE_BITCODE = NO;
 				FLUTTER_BUILD_MODE = release;
 				FLUTTER_BUILD_MODE = release;
 				INFOPLIST_FILE = Runner/Info.plist;
 				INFOPLIST_FILE = Runner/Info.plist;
@@ -585,7 +593,7 @@
 					"$(inherited)",
 					"$(inherited)",
 					"@executable_path/Frameworks",
 					"@executable_path/Frameworks",
 				);
 				);
-				MARKETING_VERSION = 1.0;
+				MARKETING_VERSION = 1.0.0;
 				PRODUCT_BUNDLE_IDENTIFIER = com.hongyegroup.app24ifm;
 				PRODUCT_BUNDLE_IDENTIFIER = com.hongyegroup.app24ifm;
 				PRODUCT_NAME = "$(TARGET_NAME)";
 				PRODUCT_NAME = "$(TARGET_NAME)";
 				SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
 				SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";

+ 5 - 7
app/ios/Runner/Info.plist

@@ -20,6 +20,8 @@
 	<string>$(PRODUCT_NAME)</string>
 	<string>$(PRODUCT_NAME)</string>
 	<key>CFBundlePackageType</key>
 	<key>CFBundlePackageType</key>
 	<string>APPL</string>
 	<string>APPL</string>
+	<key>CFBundleShortVersionString</key>
+	<string>$(MARKETING_VERSION)</string>
 	<key>CFBundleSignature</key>
 	<key>CFBundleSignature</key>
 	<string>????</string>
 	<string>????</string>
 	<key>CFBundleURLTypes</key>
 	<key>CFBundleURLTypes</key>
@@ -42,7 +44,7 @@
 		</dict>
 		</dict>
 	</array>
 	</array>
 	<key>CFBundleVersion</key>
 	<key>CFBundleVersion</key>
-	<string>1</string>
+	<string>$(CURRENT_PROJECT_VERSION)</string>
 	<key>LSApplicationQueriesSchemes</key>
 	<key>LSApplicationQueriesSchemes</key>
 	<array>
 	<array>
 		<string>qqmap</string>
 		<string>qqmap</string>
@@ -69,14 +71,10 @@
 	</dict>
 	</dict>
 	<key>NSCameraUsageDescription</key>
 	<key>NSCameraUsageDescription</key>
 	<string>“24iFM”apply for your camera permission to use functions such as taking avatars, uploading videos, uploading and saving pictures, and real-name authentication.</string>
 	<string>“24iFM”apply for your camera permission to use functions such as taking avatars, uploading videos, uploading and saving pictures, and real-name authentication.</string>
-	<key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
-	<string>24iFM needs your location to recommend nearby jobs</string>
-	<key>NSLocationWhenInUseUsageDescription</key>
-	<string>24iFM needs your location to recommend nearby jobs.</string>
 	<key>NSPhotoLibraryAddUsageDescription</key>
 	<key>NSPhotoLibraryAddUsageDescription</key>
-	<string>"24iFM" wants to access your photos for image upload, image saving and other functions.</string>
+	<string>"24iFM" requires access to your photos in order to upload your profile picture.</string>
 	<key>NSPhotoLibraryUsageDescription</key>
 	<key>NSPhotoLibraryUsageDescription</key>
-	<string>"24iFM" wants to access your photos for image upload, image saving and other functions.</string>
+	<string>"24iFM" requires access to your photos in order to upload your profile picture.</string>
 	<key>NSUserTrackingUsageDescription</key>
 	<key>NSUserTrackingUsageDescription</key>
 	<string>This identifier will be used to deliver personalized job to you.</string>
 	<string>This identifier will be used to deliver personalized job to you.</string>
 	<key>UIApplicationSupportsIndirectInputEvents</key>
 	<key>UIApplicationSupportsIndirectInputEvents</key>

+ 1 - 3
app/ios/Runner/Runner.entitlements

@@ -9,9 +9,7 @@
 		<string>Default</string>
 		<string>Default</string>
 	</array>
 	</array>
 	<key>com.apple.developer.associated-domains</key>
 	<key>com.apple.developer.associated-domains</key>
-	<array>
-		<string>applinks:api.lehuoer.cn</string>
-	</array>
+	<array/>
 	<key>com.apple.developer.networking.wifi-info</key>
 	<key>com.apple.developer.networking.wifi-info</key>
 	<true/>
 	<true/>
 </dict>
 </dict>