diff --git a/CodePush.m b/CodePush.m index 42e1732..50428f0 100644 --- a/CodePush.m +++ b/CodePush.m @@ -196,8 +196,8 @@ RCT_EXPORT_METHOD(applyUpdate:(NSDictionary*)updatePackage } RCT_EXPORT_METHOD(downloadUpdate:(NSDictionary*)updatePackage - resolver:(RCTPromiseResolveBlock)resolve - rejecter:(RCTPromiseRejectBlock)reject) + resolver:(RCTPromiseResolveBlock)resolve + rejecter:(RCTPromiseRejectBlock)reject) { [CodePushPackage downloadPackage:updatePackage progressCallback:^(long expectedContentLength, long receivedContentLength) { diff --git a/CodePushPackage.m b/CodePushPackage.m index 0badea5..784c2fd 100644 --- a/CodePushPackage.m +++ b/CodePushPackage.m @@ -4,17 +4,6 @@ NSString * const StatusFile = @"codepush.json"; -+ (CodePushPackage*)sharedInstance { - static dispatch_once_t predicate = 0; - __strong static id sharedInstance = nil; - //static id sharedObject = nil; //if you're not using ARC - dispatch_once(&predicate, ^{ - sharedInstance = [[self alloc] init]; - //sharedObject = [[[self alloc] init] retain]; // if you're not using ARC - }); - return sharedInstance; -} - + (NSString *)getCodePushPath { return [[CodePush getDocumentsDirectory] stringByAppendingPathComponent:@"CodePush"];