mirror of
https://gitcode.com/gh_mirrors/re/react-native-pushy.git
synced 2025-11-02 06:13:11 +08:00
iOS bsdiff
This commit is contained in:
34
ios/RCTHotUpdate/RCTHotUpdateManager.h
Normal file
34
ios/RCTHotUpdate/RCTHotUpdateManager.h
Normal file
@@ -0,0 +1,34 @@
|
||||
//
|
||||
// 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
|
||||
completionHandler:(void (^)(NSError *error))completionHandler;
|
||||
|
||||
- (void)removeFile:(NSString *)filePath
|
||||
completionHandler:(void (^)(NSError *error))completionHandler;
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user