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

Commit 60c0894

Browse files
author
max-mironov
authored
Fixed compile error when building CodePush with iOS app extension (#783)
1 parent 7462ee4 commit 60c0894

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ios/CodePush/CodePush.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -759,12 +759,12 @@ - (void)applicationWillResignActive
759759
[[NSNotificationCenter defaultCenter] addObserver:self
760760
selector:@selector(applicationWillEnterForeground)
761761
name:UIApplicationWillEnterForegroundNotification
762-
object:[UIApplication sharedApplication]];
762+
object:RCTSharedApplication()];
763763

764764
[[NSNotificationCenter defaultCenter] addObserver:self
765765
selector:@selector(applicationWillResignActive)
766766
name:UIApplicationWillResignActiveNotification
767-
object:[UIApplication sharedApplication]];
767+
object:RCTSharedApplication()];
768768

769769
_hasResumeListener = YES;
770770
}

0 commit comments

Comments
 (0)