This repository was archived by the owner on May 20, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +2
-13
lines changed Expand file tree Collapse file tree 2 files changed +2
-13
lines changed Original file line number Diff line number Diff line change @@ -196,8 +196,8 @@ - (void)startRollbackTimer:(int)rollbackTimeout
196
196
}
197
197
198
198
RCT_EXPORT_METHOD (downloadUpdate:(NSDictionary *)updatePackage
199
- resolver:(RCTPromiseResolveBlock)resolve
200
- rejecter:(RCTPromiseRejectBlock)reject)
199
+ resolver:(RCTPromiseResolveBlock)resolve
200
+ rejecter:(RCTPromiseRejectBlock)reject)
201
201
{
202
202
[CodePushPackage downloadPackage: updatePackage
203
203
progressCallback: ^(long expectedContentLength, long receivedContentLength) {
Original file line number Diff line number Diff line change @@ -4,17 +4,6 @@ @implementation CodePushPackage
4
4
5
5
NSString * const StatusFile = @" codepush.json" ;
6
6
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
-
18
7
+ (NSString *)getCodePushPath
19
8
{
20
9
return [[CodePush getDocumentsDirectory ] stringByAppendingPathComponent: @" CodePush" ];
You can’t perform that action at this time.
0 commit comments