1
0
mirror of https://gitcode.com/gh_mirrors/re/react-native-pushy.git synced 2025-09-16 07:01:38 +08:00
Code Issues Packages Projects Releases Wiki Activity GitHub Gitee

bump version to 10.29.7 and add error handling for hdiffFileAtPath in RCTPushy

This commit is contained in:
sunnylqm
2025-07-21 20:57:16 +08:00
parent 9b718b8f75
commit 80e42f5dba
2 changed files with 10 additions and 2 deletions

View File

@@ -542,8 +542,16 @@ RCT_EXPORT_METHOD(markSuccess:(RCTPromiseResolveBlock)resolve
callback([self errorWithMessage:ERROR_HDIFFPATCH]);
}
};
@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
{

View File

@@ -1,6 +1,6 @@
{
"name": "react-native-update",
"version": "10.29.6",
"version": "10.29.7",
"description": "react-native hot update",
"main": "src/index",
"scripts": {