From b7c3d1a528f6b0d1fc6f5913779e4b28073a2ef2 Mon Sep 17 00:00:00 2001 From: Fox Danger Piacenti Date: Tue, 19 Dec 2023 15:04:32 -0600 Subject: [PATCH] fix: Further post-rebase fixes. --- OpenEdX/AppDelegate.swift | 12 ------------ OpenEdX/DI/ScreenAssembly.swift | 1 - OpenEdX/Router.swift | 5 ++++- 3 files changed, 4 insertions(+), 14 deletions(-) diff --git a/OpenEdX/AppDelegate.swift b/OpenEdX/AppDelegate.swift index dca58d2c1..008e81af9 100644 --- a/OpenEdX/AppDelegate.swift +++ b/OpenEdX/AppDelegate.swift @@ -94,18 +94,6 @@ class AppDelegate: UIResponder, UIApplicationDelegate { sourceApplication: options[UIApplication.OpenURLOptionsKey.sourceApplication] as? String ) } - return true - } - - func application( - _ application: UIApplication, - supportedInterfaceOrientationsFor window: UIWindow? - ) -> UIInterfaceOrientationMask { - //Allows external windows, such as WebView Player, to work in any orientation - if window == self.window { - return UIDevice.current.userInterfaceIdiom == .phone ? orientationLock : .all - } else { - return UIDevice.current.userInterfaceIdiom == .phone ? .allButUpsideDown : .all } return false diff --git a/OpenEdX/DI/ScreenAssembly.swift b/OpenEdX/DI/ScreenAssembly.swift index c9e67f930..b87fa2956 100644 --- a/OpenEdX/DI/ScreenAssembly.swift +++ b/OpenEdX/DI/ScreenAssembly.swift @@ -57,7 +57,6 @@ class ScreenAssembly: Assembly { router: r.resolve(AuthorizationRouter.self)!, config: r.resolve(ConfigProtocol.self)!, analytics: r.resolve(AuthorizationAnalytics.self)!, - config: r.resolve(Config.self)!, validator: r.resolve(Validator.self)! ) } diff --git a/OpenEdX/Router.swift b/OpenEdX/Router.swift index 51c6b2155..20fe55449 100644 --- a/OpenEdX/Router.swift +++ b/OpenEdX/Router.swift @@ -97,7 +97,10 @@ public class Router: AuthorizationRouter, let controller = UIHostingController(rootView: view) navigationController.setViewControllers([controller], animated: true) } else { - let view = SignInView(viewModel: Container.shared.resolve(SignInViewModel.self)!) + let view = SignInView( + viewModel: Container.shared.resolve(SignInViewModel.self)!, + navigationController: navigationController + ) let controller = UIHostingController(rootView: view) navigationController.setViewControllers([controller], animated: false) }