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

Commit 0dd90e9

Browse files
committed
Fixing ordering
1 parent b792ae0 commit 0dd90e9

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

CodePush.m

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ @implementation CodePush
99

1010
RCT_EXPORT_MODULE()
1111

12+
BOOL didUpdate = NO;
1213
NSTimer *_timer;
1314
BOOL usingTestFolder = NO;
14-
BOOL didUpdate = NO;
1515

1616
NSString * const FailedUpdatesKey = @"CODE_PUSH_FAILED_UPDATES";
1717
NSString * const PendingUpdateKey = @"CODE_PUSH_PENDING_UPDATE";
@@ -63,7 +63,8 @@ - (void)cancelRollbackTimer
6363
});
6464
}
6565

66-
- (void)checkForPendingUpdate:(BOOL)isAppStart {
66+
- (void)checkForPendingUpdate:(BOOL)isAppStart
67+
{
6768
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
6869
NSUserDefaults *preferences = [NSUserDefaults standardUserDefaults];
6970
NSDictionary *pendingUpdate = [preferences objectForKey:PendingUpdateKey];
@@ -98,7 +99,8 @@ - (void)checkForPendingUpdate:(BOOL)isAppStart {
9899
});
99100
}
100101

101-
- (void)checkForPendingUpdateDuringResume {
102+
- (void)checkForPendingUpdateDuringResume
103+
{
102104
[self checkForPendingUpdate:NO];
103105
}
104106

@@ -112,7 +114,8 @@ - (NSDictionary *)constantsToExport
112114
};
113115
};
114116

115-
- (void)dealloc {
117+
- (void)dealloc
118+
{
116119
[[NSNotificationCenter defaultCenter] removeObserver:self];
117120
}
118121

0 commit comments

Comments
 (0)