Prechádzať zdrojové kódy

Ra image 1.24 compatible fix

Ray Zhang 9 mesiacov pred
rodič
commit
b30a32afdd

+ 16 - 6
RA Image/RA Image.xcodeproj/project.pbxproj

@@ -3,7 +3,7 @@
 	archiveVersion = 1;
 	classes = {
 	};
-	objectVersion = 53;
+	objectVersion = 54;
 	objects = {
 
 /* Begin PBXBuildFile section */
@@ -777,7 +777,7 @@
 			isa = PBXProject;
 			attributes = {
 				BuildIndependentTargetsInParallel = YES;
-				LastUpgradeCheck = 1430;
+				LastUpgradeCheck = 1630;
 				ORGANIZATIONNAME = USAI;
 				TargetAttributes = {
 					71DCDC331EAF234E00BA045A = {
@@ -956,8 +956,10 @@
 				"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
 				COPY_PHASE_STRIP = NO;
 				DEBUG_INFORMATION_FORMAT = dwarf;
+				DEVELOPMENT_TEAM = HXWLAA5YN5;
 				ENABLE_STRICT_OBJC_MSGSEND = YES;
 				ENABLE_TESTABILITY = YES;
+				ENABLE_USER_SCRIPT_SANDBOXING = YES;
 				GCC_C_LANGUAGE_STANDARD = gnu99;
 				GCC_DYNAMIC_NO_PIC = NO;
 				GCC_NO_COMMON_BLOCKS = YES;
@@ -1014,8 +1016,10 @@
 				"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
 				COPY_PHASE_STRIP = NO;
 				DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
+				DEVELOPMENT_TEAM = HXWLAA5YN5;
 				ENABLE_NS_ASSERTIONS = NO;
 				ENABLE_STRICT_OBJC_MSGSEND = YES;
+				ENABLE_USER_SCRIPT_SANDBOXING = YES;
 				GCC_C_LANGUAGE_STANDARD = gnu99;
 				GCC_NO_COMMON_BLOCKS = YES;
 				GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
@@ -1037,17 +1041,20 @@
 				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
 				"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
 				CURRENT_PROJECT_VERSION = 53235;
-				DEVELOPMENT_TEAM = HXWLAA5YN5;
 				INFOPLIST_FILE = "RA Image/Info.plist";
 				IPHONEOS_DEPLOYMENT_TARGET = 12.0;
 				LD_RUNPATH_SEARCH_PATHS = (
 					"$(inherited)",
 					"@executable_path/Frameworks",
 				);
-				MARKETING_VERSION = 1.22;
+				MARKETING_VERSION = 1.24;
 				PRODUCT_BUNDLE_IDENTIFIER = "usai.redant.RA-Image";
 				PRODUCT_NAME = "$(TARGET_NAME)";
 				PROVISIONING_PROFILE_SPECIFIER = "";
+				SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
+				SUPPORTS_MACCATALYST = NO;
+				SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO;
+				TARGETED_DEVICE_FAMILY = 1;
 			};
 			name = Debug;
 		};
@@ -1057,17 +1064,20 @@
 				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
 				"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
 				CURRENT_PROJECT_VERSION = 53235;
-				DEVELOPMENT_TEAM = HXWLAA5YN5;
 				INFOPLIST_FILE = "RA Image/Info.plist";
 				IPHONEOS_DEPLOYMENT_TARGET = 12.0;
 				LD_RUNPATH_SEARCH_PATHS = (
 					"$(inherited)",
 					"@executable_path/Frameworks",
 				);
-				MARKETING_VERSION = 1.22;
+				MARKETING_VERSION = 1.24;
 				PRODUCT_BUNDLE_IDENTIFIER = "usai.redant.RA-Image";
 				PRODUCT_NAME = "$(TARGET_NAME)";
 				PROVISIONING_PROFILE_SPECIFIER = "";
+				SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
+				SUPPORTS_MACCATALYST = NO;
+				SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO;
+				TARGETED_DEVICE_FAMILY = 1;
 			};
 			name = Release;
 		};

+ 32 - 32
RA Image/RA Image/BasicModeViewController.m

@@ -268,38 +268,38 @@
     
 
 }
-
-- (void)showPhotoLibrary {
-    if (![UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypePhotoLibrary]) {
-       
-        
-        [RAUtils message_box:@"Warning" message:@"Photo Library is not available" completion:nil];
-        return;
-    }
-    //相册权限
-    ALAuthorizationStatus author = [ALAssetsLibrary authorizationStatus];
-    if (author ==ALAuthorizationStatusRestricted || author ==ALAuthorizationStatusDenied){
-        //无权限 引导去开启
-        NSURL *url = [NSURL URLWithString:UIApplicationOpenSettingsURLString];
-        if ([[UIApplication sharedApplication] canOpenURL:url]) {
-            [[UIApplication sharedApplication] openURL:url];
-        } else {
-            NSDictionary* infoDict =[[NSBundle mainBundle] infoDictionary];
-            NSString *appName = [infoDict objectForKey:@"CFBundleName"];
-            
-            
-            [RAUtils message_box:@"Warning" message:[NSString stringWithFormat:@"%@ need Authorization to use photo library",appName] completion:nil];
-        }
-        return;
-    }
-    
-    UIImagePickerController *imgPicker = [[UIImagePickerController alloc] init];
-    imgPicker.delegate = self;
-    imgPicker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
-    imgPicker.allowsEditing = NO;
-    [self presentViewController:imgPicker animated:YES completion:nil];
-
-}
+//
+//- (void)showPhotoLibrary {
+//    if (![UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypePhotoLibrary]) {
+//       
+//        
+//        [RAUtils message_box:@"Warning" message:@"Photo Library is not available" completion:nil];
+//        return;
+//    }
+//    //相册权限
+//    ALAuthorizationStatus author = [ALAssetsLibrary authorizationStatus];
+//    if (author ==ALAuthorizationStatusRestricted || author ==ALAuthorizationStatusDenied){
+//        //无权限 引导去开启
+//        NSURL *url = [NSURL URLWithString:UIApplicationOpenSettingsURLString];
+//        if ([[UIApplication sharedApplication] canOpenURL:url]) {
+//            [[UIApplication sharedApplication] openURL:url];
+//        } else {
+//            NSDictionary* infoDict =[[NSBundle mainBundle] infoDictionary];
+//            NSString *appName = [infoDict objectForKey:@"CFBundleName"];
+//            
+//            
+//            [RAUtils message_box:@"Warning" message:[NSString stringWithFormat:@"%@ need Authorization to use photo library",appName] completion:nil];
+//        }
+//        return;
+//    }
+//    
+//    UIImagePickerController *imgPicker = [[UIImagePickerController alloc] init];
+//    imgPicker.delegate = self;
+//    imgPicker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
+//    imgPicker.allowsEditing = NO;
+//    [self presentViewController:imgPicker animated:YES completion:nil];
+//
+//}
 
 - (void)showBarcodeInput:(UIKeyboardType)keyboardType {
     [self tapResignFirstResponder:nil];