diff --git a/ios/RCTHotUpdate/RCTHotUpdate.m b/ios/RCTHotUpdate/RCTHotUpdate.m index 0bdf813..2fd4619 100644 --- a/ios/RCTHotUpdate/RCTHotUpdate.m +++ b/ios/RCTHotUpdate/RCTHotUpdate.m @@ -322,7 +322,7 @@ RCT_EXPORT_METHOD(markSuccess) { NSString *sourceOrigin = [[NSBundle mainBundle] resourcePath]; NSString *bundleOrigin = [[RCTHotUpdate binaryBundleURL] path]; - [self patch:hashName romBundle:bundleOrigin source:sourceOrigin callback:callback]; + [self patch:hashName fromBundle:bundleOrigin source:sourceOrigin callback:callback]; } break; case HotUpdateTypePatchFromPpk: @@ -331,7 +331,7 @@ RCT_EXPORT_METHOD(markSuccess) NSString *sourceOrigin = lastVertionDir; NSString *bundleOrigin = [lastVertionDir stringByAppendingPathComponent:BUNDLE_FILE_NAME]; - [self patch:hashName romBundle:bundleOrigin source:sourceOrigin callback:callback]; + [self patch:hashName fromBundle:bundleOrigin source:sourceOrigin callback:callback]; } break; default: @@ -345,7 +345,7 @@ RCT_EXPORT_METHOD(markSuccess) }]; } -- (void)patch:(NSString *)hashName romBundle:(NSString *)bundleOrigin source:(NSString *)sourceOrigin callback:(void (^)(NSError *error))callback +- (void)patch:(NSString *)hashName fromBundle:(NSString *)bundleOrigin source:(NSString *)sourceOrigin callback:(void (^)(NSError *error))callback { NSString *unzipDir = [[RCTHotUpdate downloadDir] stringByAppendingPathComponent:hashName]; NSString *sourcePatch = [unzipDir stringByAppendingPathComponent:SOURCE_PATCH_NAME];