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]); |             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 | - (void)patch:(NSString *)hash fromBundle:(NSString *)bundleOrigin source:(NSString *)sourceOrigin callback:(void (^)(NSError *error))callback | ||||||
|   | |||||||
| @@ -1,6 +1,6 @@ | |||||||
| { | { | ||||||
|   "name": "react-native-update", |   "name": "react-native-update", | ||||||
|   "version": "10.29.6", |   "version": "10.29.7", | ||||||
|   "description": "react-native hot update", |   "description": "react-native hot update", | ||||||
|   "main": "src/index", |   "main": "src/index", | ||||||
|   "scripts": { |   "scripts": { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 sunnylqm
					sunnylqm