@@ -64,6 +64,7 @@ @implementation CodePush {
64
64
65
65
+ (void )initialize
66
66
{
67
+ [super initialize ];
67
68
if (self == [CodePush class ]) {
68
69
// Use the mainBundle by default.
69
70
bundleResourceBundle = [NSBundle mainBundle ];
@@ -231,7 +232,6 @@ + (void)setUsingTestConfiguration:(BOOL)shouldUseTestConfiguration
231
232
232
233
#pragma mark - Private API methods
233
234
234
- @synthesize bridge = _bridge;
235
235
@synthesize methodQueue = _methodQueue;
236
236
@synthesize pauseCallback = _pauseCallback;
237
237
@synthesize paused = _paused;
@@ -255,7 +255,7 @@ - (void)setPaused:(BOOL)paused
255
255
- (void )clearDebugUpdates
256
256
{
257
257
dispatch_async (dispatch_get_main_queue (), ^{
258
- if ([_bridge .bundleURL.scheme hasPrefix: @" http" ]) {
258
+ if ([super .bridge .bundleURL.scheme hasPrefix: @" http" ]) {
259
259
NSError *error;
260
260
NSString *binaryAppVersion = [[CodePushConfig current ] appVersion ];
261
261
NSDictionary *currentPackageMetadata = [CodePushPackage getCurrentPackage: &error];
@@ -434,18 +434,18 @@ + (BOOL)isPendingUpdate:(NSString*)packageHash
434
434
*/
435
435
- (void )loadBundle
436
436
{
437
- // This needs to be async dispatched because the _bridge is not set on init
437
+ // This needs to be async dispatched because the bridge is not set on init
438
438
// when the app first starts, therefore rollbacks will not take effect.
439
439
dispatch_async (dispatch_get_main_queue (), ^{
440
440
// If the current bundle URL is using http(s), then assume the dev
441
441
// is debugging and therefore, shouldn't be redirected to a local
442
442
// file (since Chrome wouldn't support it). Otherwise, update
443
443
// the current bundle URL to point at the latest update
444
- if ([CodePush isUsingTestConfiguration ] || ![_bridge .bundleURL.scheme hasPrefix: @" http" ]) {
445
- [_bridge setValue: [CodePush bundleURL ] forKey: @" bundleURL" ];
444
+ if ([CodePush isUsingTestConfiguration ] || ![super .bridge .bundleURL.scheme hasPrefix: @" http" ]) {
445
+ [super .bridge setValue: [CodePush bundleURL ] forKey: @" bundleURL" ];
446
446
}
447
447
448
- [_bridge reload ];
448
+ [super .bridge reload ];
449
449
});
450
450
}
451
451
0 commit comments