From 11ef71b9784f63831924aacb4fd2ec1ab8af6a2e Mon Sep 17 00:00:00 2001 From: lvbingru Date: Wed, 6 Apr 2016 10:34:11 +0800 Subject: [PATCH] bug fixed --- ios/RCTHotUpdate/RCTHotUpdate.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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];