Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
2b39280f50
@ -197,7 +197,7 @@ RCT_EXPORT_METHOD(removePreviousUpdates:(NSDictionary *)options)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
NSString *zipFilePath = [dir stringByAppendingPathComponent:[NSString stringWithFormat:@"%@, %@",hashName, [self zipExtension:type]]];
|
NSString *zipFilePath = [dir stringByAppendingPathComponent:[NSString stringWithFormat:@"%@%@",hashName, [self zipExtension:type]]];
|
||||||
NSString *unzipDir = [dir stringByAppendingPathComponent:hashName];
|
NSString *unzipDir = [dir stringByAppendingPathComponent:hashName];
|
||||||
|
|
||||||
RCTLogInfo(@"RNUpdate -- download file %@", updateUrl);
|
RCTLogInfo(@"RNUpdate -- download file %@", updateUrl);
|
||||||
@ -214,7 +214,7 @@ RCT_EXPORT_METHOD(removePreviousUpdates:(NSDictionary *)options)
|
|||||||
else {
|
else {
|
||||||
RCTLogInfo(@"RNUpdate -- unzip file %@", zipFilePath);
|
RCTLogInfo(@"RNUpdate -- unzip file %@", zipFilePath);
|
||||||
NSString *unzipFilePath = [dir stringByAppendingPathComponent:hashName];
|
NSString *unzipFilePath = [dir stringByAppendingPathComponent:hashName];
|
||||||
[_fileManager unzipFileAtPath:unzipDir toDestination:unzipFilePath progressHandler:^(NSString *entry,long entryNumber, long total) {
|
[_fileManager unzipFileAtPath:zipFilePath toDestination:unzipFilePath progressHandler:^(NSString *entry,long entryNumber, long total) {
|
||||||
[self.bridge.eventDispatcher sendAppEventWithName:EVENT_PROGRESS_UNZIP
|
[self.bridge.eventDispatcher sendAppEventWithName:EVENT_PROGRESS_UNZIP
|
||||||
body:@{
|
body:@{
|
||||||
PARAM_PROGRESS_RECEIVED:[NSNumber numberWithLong:entryNumber],
|
PARAM_PROGRESS_RECEIVED:[NSNumber numberWithLong:entryNumber],
|
||||||
|
Loading…
Reference in New Issue
Block a user