mirror of
				https://gitcode.com/gh_mirrors/re/react-native-pushy.git
				synced 2025-10-31 21:33:12 +08:00 
			
		
		
		
	bump version to 10.29.7 and add error handling for hdiffFileAtPath in RCTPushy
This commit is contained in:
		| @@ -542,7 +542,15 @@ RCT_EXPORT_METHOD(markSuccess:(RCTPromiseResolveBlock)resolve | ||||
|             callback([self errorWithMessage:ERROR_HDIFFPATCH]); | ||||
|         } | ||||
|     }; | ||||
|     [_fileManager hdiffFileAtPath:bundlePatch fromOrigin:bundleOrigin toDestination:destination completionHandler:completionHandler]; | ||||
|      | ||||
|     @try { | ||||
|         [_fileManager hdiffFileAtPath:bundlePatch fromOrigin:bundleOrigin toDestination:destination completionHandler:completionHandler]; | ||||
|     } | ||||
|     @catch (NSException *exception) { | ||||
|         NSLog(@"Pushy _dopatch error: exception occurred during hdiffFileAtPath: %@, reason: %@",  | ||||
|               exception.name, exception.reason); | ||||
|         callback([self errorWithMessage:ERROR_HDIFFPATCH]); | ||||
|     } | ||||
| } | ||||
|  | ||||
| - (void)patch:(NSString *)hash fromBundle:(NSString *)bundleOrigin source:(NSString *)sourceOrigin callback:(void (^)(NSError *error))callback | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 sunnylqm
					sunnylqm