diff --git a/CodePush.h b/CodePush.h index 9f3697f..0ebb64a 100644 --- a/CodePush.h +++ b/CodePush.h @@ -2,8 +2,8 @@ @interface CodePush : NSObject -+ (NSString *)getDocumentsDirectory; + (NSURL *)getBundleUrl; ++ (NSString *)getDocumentsDirectory; @end @@ -31,21 +31,22 @@ @interface CodePushPackage : NSObject -+ (NSString *)getCurrentPackageFolderPath:(NSError **)error; - -+ (NSString *)getPackageFolderPath:(NSString *)packageHash; ++ (void)applyPackage:(NSDictionary *)updatePackage + error:(NSError **)error; + (NSDictionary *)getCurrentPackage:(NSError **)error; ++ (NSString *)getCurrentPackageFolderPath:(NSError **)error; ++ (NSString *)getCurrentPackageHash:(NSError **)error; + (NSDictionary *)getPackage:(NSString *)packageHash error:(NSError **)error; ++ (NSString *)getPackageFolderPath:(NSString *)packageHash; + + + (void)downloadPackage:(NSDictionary *)updatePackage error:(NSError **)error; -+ (void)applyPackage:(NSDictionary *)updatePackage - error:(NSError **)error; - + (void)rollbackPackage; @end \ No newline at end of file