From daea84827c15248314ce4222cfbe81ae4075abfa Mon Sep 17 00:00:00 2001 From: Jonathan Carter Date: Mon, 2 Nov 2015 15:45:47 -0800 Subject: [PATCH] Adding a missing method to the package interface --- CodePush.h | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) 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