36 lines
1.1 KiB
Objective-C
36 lines
1.1 KiB
Objective-C
//
|
|
// RCTHotUpdateManager.h
|
|
// RCTHotUpdate
|
|
//
|
|
// Created by lvbingru on 16/4/1.
|
|
// Copyright © 2016年 erica. All rights reserved.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
@interface RCTHotUpdateManager : NSObject
|
|
|
|
|
|
- (BOOL)createDir:(NSString *)dir;
|
|
|
|
- (void)unzipFileAtPath:(NSString *)path
|
|
toDestination:(NSString *)destination
|
|
progressHandler:(void (^)(NSString *entry, long entryNumber, long total))progressHandler
|
|
completionHandler:(void (^)(NSString *path, BOOL succeeded, NSError *error))completionHandler;
|
|
|
|
- (void)bsdiffFileAtPath:(NSString *)path
|
|
fromOrigin:(NSString *)origin
|
|
toDestination:(NSString *)destination
|
|
completionHandler:(void (^)(BOOL success))completionHandler;
|
|
|
|
- (void)copyFiles:(NSDictionary *)filesDic
|
|
fromDir:(NSString *)fromDir
|
|
toDir:(NSString *)toDir
|
|
deletes:(NSDictionary *)deletes
|
|
completionHandler:(void (^)(NSError *error))completionHandler;
|
|
|
|
- (void)removeFile:(NSString *)filePath
|
|
completionHandler:(void (^)(NSError *error))completionHandler;
|
|
|
|
@end
|