Skip to content

Commit 3867dfc

Browse files
committed
clean up
1 parent 9b495d0 commit 3867dfc

File tree

3 files changed

+1
-356
lines changed

3 files changed

+1
-356
lines changed

example/ios/AppDelegate.swift

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
99

1010
var reactNativeDelegate: ReactNativeDelegate?
1111
var reactNativeFactory: RCTReactNativeFactory?
12-
var backgroundTask: UIBackgroundTaskIdentifier = .invalid
1312

1413
func application(
1514
_ application: UIApplication,
@@ -29,29 +28,9 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
2928
in: window,
3029
launchOptions: launchOptions
3130
)
32-
33-
// Prevent the screen from auto-locking which causes iOS to suspend the app
34-
// and halt JS execution (critical for CI test runs on simulators)
35-
UIApplication.shared.isIdleTimerDisabled = true
36-
31+
3732
return true
3833
}
39-
40-
func applicationDidEnterBackground(_ application: UIApplication) {
41-
// Request extended background execution so tests keep running on CI
42-
// even if the simulator backgrounds the app
43-
backgroundTask = application.beginBackgroundTask {
44-
application.endBackgroundTask(self.backgroundTask)
45-
self.backgroundTask = .invalid
46-
}
47-
}
48-
49-
func applicationWillEnterForeground(_ application: UIApplication) {
50-
if backgroundTask != .invalid {
51-
application.endBackgroundTask(backgroundTask)
52-
backgroundTask = .invalid
53-
}
54-
}
5534
}
5635

5736
class ReactNativeDelegate: RCTDefaultReactNativeFactoryDelegate {

example/patches/@op-engineering+op-test+0.2.5.patch

Lines changed: 0 additions & 251 deletions
This file was deleted.

scripts/poll-in-app-server.js

Lines changed: 0 additions & 83 deletions
This file was deleted.

0 commit comments

Comments
 (0)