@@ -54,16 +54,14 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
5454 // Setup Components
5555 setupStartupWaitingTimeTracker ( )
5656
57- let stores = ServiceLocator . stores
5857 let analytics = ServiceLocator . analytics
5958 let pushNotesManager = ServiceLocator . pushNotesManager
60- stores. initializeAfterDependenciesAreInitialized ( )
6159 setupAnalytics ( analytics)
6260
6361 setupCocoaLumberjack ( )
6462 setupLibraryLogger ( )
6563 setupLogLevel ( . verbose)
66- setupPushNotificationsManagerIfPossible ( pushNotesManager, stores : stores )
64+ setupPushNotificationsManagerIfPossible ( pushNotesManager)
6765 setupAppRatingManager ( )
6866 setupWormholy ( )
6967 setupKeyboardStateProvider ( )
@@ -268,7 +266,7 @@ extension AppDelegate {
268266 /// Push Notifications: Authorization + Registration!
269267 ///
270268 // periphery: ignore - Fails when build on simulator
271- func setupPushNotificationsManagerIfPossible( _ pushNotesManager: PushNotesManager , stores : StoresManager ) {
269+ func setupPushNotificationsManagerIfPossible( _ pushNotesManager: PushNotesManager ) {
272270 #if targetEnvironment(simulator)
273271 DDLogVerbose ( " 👀 Push Notifications are not supported in the Simulator! " )
274272 #else
@@ -417,7 +415,7 @@ extension AppDelegate {
417415 /// Runs whenever the Authentication Flow is completed successfully.
418416 ///
419417 func authenticatorWasDismissed( ) {
420- setupPushNotificationsManagerIfPossible ( ServiceLocator . pushNotesManager, stores : ServiceLocator . stores )
418+ setupPushNotificationsManagerIfPossible ( ServiceLocator . pushNotesManager)
421419 requirementsChecker. checkEligibilityForDefaultStore ( )
422420 }
423421}
0 commit comments