فهرست منبع

1.修改iOS Apex Driver关闭App Group。

Pen Li 7 سال پیش
والد
کامیت
3f9dca00cf

+ 1 - 138
Redant Drivers/Apex And Drivers.xcodeproj/project.pbxproj

@@ -167,8 +167,6 @@
 		42ECE182214A04BE00AD8283 /* RASettingAboutModel.m in Sources */ = {isa = PBXBuildFile; fileRef = 42ECE181214A04BE00AD8283 /* RASettingAboutModel.m */; };
 		42ECE185214A08A900AD8283 /* RASettingAboutCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 42ECE184214A08A900AD8283 /* RASettingAboutCell.m */; };
 		42ECE189214A49B600AD8283 /* RAChangePasswordViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 42ECE188214A49B600AD8283 /* RAChangePasswordViewController.m */; };
-		42ED62D920F85ADB00E08CCB /* NotificationService.m in Sources */ = {isa = PBXBuildFile; fileRef = 42ED62D820F85ADB00E08CCB /* NotificationService.m */; };
-		42ED62DD20F85ADB00E08CCB /* RADriversNotificationService.appex in Embed App Extensions */ = {isa = PBXBuildFile; fileRef = 42ED62D520F85ADB00E08CCB /* RADriversNotificationService.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; };
 		42F0C5D720E20B3F00922442 /* RACameraViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 42F0C5D620E20B3E00922442 /* RACameraViewController.m */; };
 		42F624E5214BA4A100B1F012 /* RAMessageViewController+DataSource.m in Sources */ = {isa = PBXBuildFile; fileRef = 42F624E4214BA4A100B1F012 /* RAMessageViewController+DataSource.m */; };
 		42F624E8214BA4AF00B1F012 /* RAMessageViewController+Delegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 42F624E7214BA4AF00B1F012 /* RAMessageViewController+Delegate.m */; };
@@ -181,16 +179,6 @@
 		71EAA34120B95720002F003C /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 71EAA34020B95720002F003C /* main.m */; };
 /* End PBXBuildFile section */
 
-/* Begin PBXContainerItemProxy section */
-		42ED62DB20F85ADB00E08CCB /* PBXContainerItemProxy */ = {
-			isa = PBXContainerItemProxy;
-			containerPortal = 71EAA32620B9571B002F003C /* Project object */;
-			proxyType = 1;
-			remoteGlobalIDString = 42ED62D420F85ADB00E08CCB;
-			remoteInfo = RADriversNotificationService;
-		};
-/* End PBXContainerItemProxy section */
-
 /* Begin PBXCopyFilesBuildPhase section */
 		42ED62E120F85ADB00E08CCB /* Embed App Extensions */ = {
 			isa = PBXCopyFilesBuildPhase;
@@ -198,7 +186,6 @@
 			dstPath = "";
 			dstSubfolderSpec = 13;
 			files = (
-				42ED62DD20F85ADB00E08CCB /* RADriversNotificationService.appex in Embed App Extensions */,
 			);
 			name = "Embed App Extensions";
 			runOnlyForDeploymentPostprocessing = 0;
@@ -509,11 +496,6 @@
 		42ECE184214A08A900AD8283 /* RASettingAboutCell.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RASettingAboutCell.m; sourceTree = "<group>"; };
 		42ECE187214A49B600AD8283 /* RAChangePasswordViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = RAChangePasswordViewController.h; sourceTree = "<group>"; };
 		42ECE188214A49B600AD8283 /* RAChangePasswordViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RAChangePasswordViewController.m; sourceTree = "<group>"; };
-		42ED62D520F85ADB00E08CCB /* RADriversNotificationService.appex */ = {isa = PBXFileReference; explicitFileType = "wrapper.app-extension"; includeInIndex = 0; path = RADriversNotificationService.appex; sourceTree = BUILT_PRODUCTS_DIR; };
-		42ED62D720F85ADB00E08CCB /* NotificationService.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = NotificationService.h; sourceTree = "<group>"; };
-		42ED62D820F85ADB00E08CCB /* NotificationService.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = NotificationService.m; sourceTree = "<group>"; };
-		42ED62DA20F85ADB00E08CCB /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
-		42ED62E220F88B1400E08CCB /* RADriversNotificationService.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = RADriversNotificationService.entitlements; sourceTree = "<group>"; };
 		42F0C5D620E20B3E00922442 /* RACameraViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RACameraViewController.m; sourceTree = "<group>"; };
 		42F624E3214BA4A100B1F012 /* RAMessageViewController+DataSource.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "RAMessageViewController+DataSource.h"; sourceTree = "<group>"; };
 		42F624E4214BA4A100B1F012 /* RAMessageViewController+DataSource.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = "RAMessageViewController+DataSource.m"; sourceTree = "<group>"; };
@@ -535,13 +517,6 @@
 /* End PBXFileReference section */
 
 /* Begin PBXFrameworksBuildPhase section */
-		42ED62D220F85ADB00E08CCB /* Frameworks */ = {
-			isa = PBXFrameworksBuildPhase;
-			buildActionMask = 2147483647;
-			files = (
-			);
-			runOnlyForDeploymentPostprocessing = 0;
-		};
 		71EAA32B20B9571B002F003C /* Frameworks */ = {
 			isa = PBXFrameworksBuildPhase;
 			buildActionMask = 2147483647;
@@ -1224,17 +1199,6 @@
 			path = ChangePassword;
 			sourceTree = "<group>";
 		};
-		42ED62D620F85ADB00E08CCB /* RADriversNotificationService */ = {
-			isa = PBXGroup;
-			children = (
-				42ED62E220F88B1400E08CCB /* RADriversNotificationService.entitlements */,
-				42ED62D720F85ADB00E08CCB /* NotificationService.h */,
-				42ED62D820F85ADB00E08CCB /* NotificationService.m */,
-				42ED62DA20F85ADB00E08CCB /* Info.plist */,
-			);
-			path = RADriversNotificationService;
-			sourceTree = "<group>";
-		};
 		42F624E1214BA47A00B1F012 /* Model */ = {
 			isa = PBXGroup;
 			children = (
@@ -1257,7 +1221,6 @@
 			isa = PBXGroup;
 			children = (
 				71EAA33020B9571B002F003C /* Apex And Drivers */,
-				42ED62D620F85ADB00E08CCB /* RADriversNotificationService */,
 				71EAA32F20B9571B002F003C /* Products */,
 			);
 			sourceTree = "<group>";
@@ -1266,7 +1229,6 @@
 			isa = PBXGroup;
 			children = (
 				71EAA32E20B9571B002F003C /* Apex And Drivers.app */,
-				42ED62D520F85ADB00E08CCB /* RADriversNotificationService.appex */,
 			);
 			name = Products;
 			sourceTree = "<group>";
@@ -1317,23 +1279,6 @@
 /* End PBXGroup section */
 
 /* Begin PBXNativeTarget section */
-		42ED62D420F85ADB00E08CCB /* RADriversNotificationService */ = {
-			isa = PBXNativeTarget;
-			buildConfigurationList = 42ED62E020F85ADB00E08CCB /* Build configuration list for PBXNativeTarget "RADriversNotificationService" */;
-			buildPhases = (
-				42ED62D120F85ADB00E08CCB /* Sources */,
-				42ED62D220F85ADB00E08CCB /* Frameworks */,
-				42ED62D320F85ADB00E08CCB /* Resources */,
-			);
-			buildRules = (
-			);
-			dependencies = (
-			);
-			name = RADriversNotificationService;
-			productName = RADriversNotificationService;
-			productReference = 42ED62D520F85ADB00E08CCB /* RADriversNotificationService.appex */;
-			productType = "com.apple.product-type.app-extension";
-		};
 		71EAA32D20B9571B002F003C /* Apex And Drivers */ = {
 			isa = PBXNativeTarget;
 			buildConfigurationList = 71EAA34420B95720002F003C /* Build configuration list for PBXNativeTarget "Apex And Drivers" */;
@@ -1346,7 +1291,6 @@
 			buildRules = (
 			);
 			dependencies = (
-				42ED62DC20F85ADB00E08CCB /* PBXTargetDependency */,
 			);
 			name = "Apex And Drivers";
 			productName = "Apex And Drivers";
@@ -1362,19 +1306,11 @@
 				LastUpgradeCheck = 0930;
 				ORGANIZATIONNAME = USAI;
 				TargetAttributes = {
-					42ED62D420F85ADB00E08CCB = {
-						CreatedOnToolsVersion = 9.4;
-						SystemCapabilities = {
-							com.apple.ApplicationGroups.iOS = {
-								enabled = 1;
-							};
-						};
-					};
 					71EAA32D20B9571B002F003C = {
 						CreatedOnToolsVersion = 9.3;
 						SystemCapabilities = {
 							com.apple.ApplicationGroups.iOS = {
-								enabled = 1;
+								enabled = 0;
 							};
 							com.apple.BackgroundModes = {
 								enabled = 1;
@@ -1400,19 +1336,11 @@
 			projectRoot = "";
 			targets = (
 				71EAA32D20B9571B002F003C /* Apex And Drivers */,
-				42ED62D420F85ADB00E08CCB /* RADriversNotificationService */,
 			);
 		};
 /* End PBXProject section */
 
 /* Begin PBXResourcesBuildPhase section */
-		42ED62D320F85ADB00E08CCB /* Resources */ = {
-			isa = PBXResourcesBuildPhase;
-			buildActionMask = 2147483647;
-			files = (
-			);
-			runOnlyForDeploymentPostprocessing = 0;
-		};
 		71EAA32C20B9571B002F003C /* Resources */ = {
 			isa = PBXResourcesBuildPhase;
 			buildActionMask = 2147483647;
@@ -1448,14 +1376,6 @@
 /* End PBXResourcesBuildPhase section */
 
 /* Begin PBXSourcesBuildPhase section */
-		42ED62D120F85ADB00E08CCB /* Sources */ = {
-			isa = PBXSourcesBuildPhase;
-			buildActionMask = 2147483647;
-			files = (
-				42ED62D920F85ADB00E08CCB /* NotificationService.m in Sources */,
-			);
-			runOnlyForDeploymentPostprocessing = 0;
-		};
 		71EAA32A20B9571B002F003C /* Sources */ = {
 			isa = PBXSourcesBuildPhase;
 			buildActionMask = 2147483647;
@@ -1610,14 +1530,6 @@
 		};
 /* End PBXSourcesBuildPhase section */
 
-/* Begin PBXTargetDependency section */
-		42ED62DC20F85ADB00E08CCB /* PBXTargetDependency */ = {
-			isa = PBXTargetDependency;
-			target = 42ED62D420F85ADB00E08CCB /* RADriversNotificationService */;
-			targetProxy = 42ED62DB20F85ADB00E08CCB /* PBXContainerItemProxy */;
-		};
-/* End PBXTargetDependency section */
-
 /* Begin PBXVariantGroup section */
 		429CF61E20E0E32E00CE8DAD /* Localizable.strings */ = {
 			isa = PBXVariantGroup;
@@ -1646,46 +1558,6 @@
 /* End PBXVariantGroup section */
 
 /* Begin XCBuildConfiguration section */
-		42ED62DE20F85ADB00E08CCB /* Debug */ = {
-			isa = XCBuildConfiguration;
-			buildSettings = {
-				CODE_SIGN_ENTITLEMENTS = RADriversNotificationService/RADriversNotificationService.entitlements;
-				CODE_SIGN_STYLE = Automatic;
-				DEVELOPMENT_TEAM = HXWLAA5YN5;
-				INFOPLIST_FILE = RADriversNotificationService/Info.plist;
-				IPHONEOS_DEPLOYMENT_TARGET = 10.0;
-				LD_RUNPATH_SEARCH_PATHS = (
-					"$(inherited)",
-					"@executable_path/Frameworks",
-					"@executable_path/../../Frameworks",
-				);
-				PRODUCT_BUNDLE_IDENTIFIER = "usai.redant.Apex-And-Drivers.RADriversNotificationService";
-				PRODUCT_NAME = "$(TARGET_NAME)";
-				SKIP_INSTALL = YES;
-				TARGETED_DEVICE_FAMILY = "1,2";
-			};
-			name = Debug;
-		};
-		42ED62DF20F85ADB00E08CCB /* Release */ = {
-			isa = XCBuildConfiguration;
-			buildSettings = {
-				CODE_SIGN_ENTITLEMENTS = RADriversNotificationService/RADriversNotificationService.entitlements;
-				CODE_SIGN_STYLE = Automatic;
-				DEVELOPMENT_TEAM = HXWLAA5YN5;
-				INFOPLIST_FILE = RADriversNotificationService/Info.plist;
-				IPHONEOS_DEPLOYMENT_TARGET = 10.0;
-				LD_RUNPATH_SEARCH_PATHS = (
-					"$(inherited)",
-					"@executable_path/Frameworks",
-					"@executable_path/../../Frameworks",
-				);
-				PRODUCT_BUNDLE_IDENTIFIER = "usai.redant.Apex-And-Drivers.RADriversNotificationService";
-				PRODUCT_NAME = "$(TARGET_NAME)";
-				SKIP_INSTALL = YES;
-				TARGETED_DEVICE_FAMILY = "1,2";
-			};
-			name = Release;
-		};
 		71EAA34220B95720002F003C /* Debug */ = {
 			isa = XCBuildConfiguration;
 			buildSettings = {
@@ -1841,15 +1713,6 @@
 /* End XCBuildConfiguration section */
 
 /* Begin XCConfigurationList section */
-		42ED62E020F85ADB00E08CCB /* Build configuration list for PBXNativeTarget "RADriversNotificationService" */ = {
-			isa = XCConfigurationList;
-			buildConfigurations = (
-				42ED62DE20F85ADB00E08CCB /* Debug */,
-				42ED62DF20F85ADB00E08CCB /* Release */,
-			);
-			defaultConfigurationIsVisible = 0;
-			defaultConfigurationName = Release;
-		};
 		71EAA32920B9571B002F003C /* Build configuration list for PBXProject "Apex And Drivers" */ = {
 			isa = XCConfigurationList;
 			buildConfigurations = (

+ 0 - 4
Redant Drivers/Apex And Drivers/Apex And Drivers.entitlements

@@ -4,9 +4,5 @@
 <dict>
 	<key>aps-environment</key>
 	<string>development</string>
-	<key>com.apple.security.application-groups</key>
-	<array>
-		<string>group.radrivers</string>
-	</array>
 </dict>
 </plist>

+ 1 - 1
Redant Drivers/Apex And Drivers/RASingleton.m

@@ -139,7 +139,7 @@ static RASingleton *singleton;
 - (void)loadSavedReuqiredLocation { // 启动的时候
     
     NSUserDefaults *defaults =[NSUserDefaults standardUserDefaults];
-    _requiredLocation = [defaults objectForKey:@"requiredLocation"];
+    _requiredLocation = [[defaults objectForKey:@"requiredLocation"] boolValue];
     
     [self sendRequiredLocationNotification];
 }