@@ -40,7 +40,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
4040 ///
4141 private var jetpackSetupCoordinator : JetpackSetupCoordinator ?
4242
43- private( set) var requirementsChecker = RequirementsChecker ( baseViewController: nil )
43+ private( set) lazy var requirementsChecker = RequirementsChecker ( baseViewController: tabBarController )
4444
4545 /// Handles events to background refresh the app.
4646 ///
@@ -111,20 +111,6 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
111111 return true
112112 }
113113
114- func application( _ app: UIApplication , open url: URL , options: [ UIApplication . OpenURLOptionsKey : Any ] = [ : ] ) -> Bool {
115- guard let sceneDelegate = UIApplication . sceneDelegate,
116- let rootViewController = sceneDelegate. window? . rootViewController else {
117- fatalError ( )
118- }
119-
120- if let universalLinkRouter = sceneDelegate. universalLinkRouter, universalLinkRouter. canHandle ( url: url) {
121- universalLinkRouter. handle ( url: url)
122- return true
123- }
124-
125- return handleAuthenticationUrl ( url, options: options, rootViewController: rootViewController)
126- }
127-
128114 func application( _ application: UIApplication , didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data ) {
129115 guard let defaultStoreID = ServiceLocator . stores. sessionManager. defaultStoreID else {
130116 return
@@ -262,7 +248,6 @@ extension AppDelegate {
262248
263249 /// Push Notifications: Authorization + Registration!
264250 ///
265- /// periphery: ignore - Fails when build on simulator
266251 func setupPushNotificationsManagerIfPossible( _ pushNotesManager: PushNotesManager , stores: StoresManager ) {
267252 #if targetEnvironment(simulator)
268253 DDLogVerbose ( " 👀 Push Notifications are not supported in the Simulator! " )
0 commit comments