Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit e79b911

Browse files
committed
download-progress
1 parent f553fa8 commit e79b911

File tree

2 files changed

+2
-13
lines changed

2 files changed

+2
-13
lines changed

CodePush.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,8 @@ - (void)startRollbackTimer:(int)rollbackTimeout
196196
}
197197

198198
RCT_EXPORT_METHOD(downloadUpdate:(NSDictionary*)updatePackage
199-
resolver:(RCTPromiseResolveBlock)resolve
200-
rejecter:(RCTPromiseRejectBlock)reject)
199+
resolver:(RCTPromiseResolveBlock)resolve
200+
rejecter:(RCTPromiseRejectBlock)reject)
201201
{
202202
[CodePushPackage downloadPackage:updatePackage
203203
progressCallback:^(long expectedContentLength, long receivedContentLength) {

CodePushPackage.m

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,6 @@ @implementation CodePushPackage
44

55
NSString * const StatusFile = @"codepush.json";
66

7-
+ (CodePushPackage*)sharedInstance {
8-
static dispatch_once_t predicate = 0;
9-
__strong static id sharedInstance = nil;
10-
//static id sharedObject = nil; //if you're not using ARC
11-
dispatch_once(&predicate, ^{
12-
sharedInstance = [[self alloc] init];
13-
//sharedObject = [[[self alloc] init] retain]; // if you're not using ARC
14-
});
15-
return sharedInstance;
16-
}
17-
187
+ (NSString *)getCodePushPath
198
{
209
return [[CodePush getDocumentsDirectory] stringByAppendingPathComponent:@"CodePush"];

0 commit comments

Comments
 (0)