This repository was archived by the owner on May 20, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -9,9 +9,9 @@ @implementation CodePush
9
9
10
10
RCT_EXPORT_MODULE ()
11
11
12
+ BOOL didUpdate = NO;
12
13
NSTimer *_timer;
13
14
BOOL usingTestFolder = NO ;
14
- BOOL didUpdate = NO ;
15
15
16
16
NSString * const FailedUpdatesKey = @" CODE_PUSH_FAILED_UPDATES" ;
17
17
NSString * const PendingUpdateKey = @" CODE_PUSH_PENDING_UPDATE" ;
@@ -63,7 +63,8 @@ - (void)cancelRollbackTimer
63
63
});
64
64
}
65
65
66
- - (void )checkForPendingUpdate : (BOOL )isAppStart {
66
+ - (void )checkForPendingUpdate : (BOOL )isAppStart
67
+ {
67
68
dispatch_async (dispatch_get_global_queue (DISPATCH_QUEUE_PRIORITY_DEFAULT, 0 ), ^{
68
69
NSUserDefaults *preferences = [NSUserDefaults standardUserDefaults ];
69
70
NSDictionary *pendingUpdate = [preferences objectForKey: PendingUpdateKey];
@@ -98,7 +99,8 @@ - (void)checkForPendingUpdate:(BOOL)isAppStart {
98
99
});
99
100
}
100
101
101
- - (void )checkForPendingUpdateDuringResume {
102
+ - (void )checkForPendingUpdateDuringResume
103
+ {
102
104
[self checkForPendingUpdate: NO ];
103
105
}
104
106
@@ -112,7 +114,8 @@ - (NSDictionary *)constantsToExport
112
114
};
113
115
};
114
116
115
- - (void )dealloc {
117
+ - (void )dealloc
118
+ {
116
119
[[NSNotificationCenter defaultCenter ] removeObserver: self ];
117
120
}
118
121
You can’t perform that action at this time.
0 commit comments