mirror of
				https://gitcode.com/gh_mirrors/re/react-native-pushy.git
				synced 2025-10-31 21:33:12 +08:00 
			
		
		
		
	bug fixed
This commit is contained in:
		| @@ -58,6 +58,11 @@ | |||||||
|       completionHandler:(void (^)(NSString *path, BOOL succeeded, NSError *error))completionHandler |       completionHandler:(void (^)(NSString *path, BOOL succeeded, NSError *error))completionHandler | ||||||
| { | { | ||||||
|     dispatch_async(_opQueue, ^{ |     dispatch_async(_opQueue, ^{ | ||||||
|  |          | ||||||
|  |         if ([[NSFileManager defaultManager] fileExistsAtPath:destination]) { | ||||||
|  |             [[NSFileManager defaultManager] removeItemAtPath:destination error:nil]; | ||||||
|  |         } | ||||||
|  |          | ||||||
|         [SSZipArchive unzipFileAtPath:path toDestination:destination progressHandler:^(NSString *entry, unz_file_info zipInfo, long entryNumber, long total) { |         [SSZipArchive unzipFileAtPath:path toDestination:destination progressHandler:^(NSString *entry, unz_file_info zipInfo, long entryNumber, long total) { | ||||||
|             progressHandler(entry, entryNumber, total); |             progressHandler(entry, entryNumber, total); | ||||||
|         } completionHandler:^(NSString *path, BOOL succeeded, NSError *error) { |         } completionHandler:^(NSString *path, BOOL succeeded, NSError *error) { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 lvbingru
					lvbingru