12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- //
- // AppDelegate.swift
- // JiaPeiManage
- //
- // Created by Ning.ge on 2023/6/12.
- //
- import UIKit
- @main
- class AppDelegate: UIResponder, UIApplicationDelegate {
- // MARK: Properties
-
- var dependency: NYAppDependency!
-
- // MARK: UI
-
- var window: UIWindow?
- // MARK: UIApplicationDelegate
- func application(_ application:UIApplication, didFinishLaunchingWithOptions launchOptions:[UIApplication.LaunchOptionsKey: Any]?) -> Bool {
-
- self.dependency = self.dependency ?? CompositionRoot.resolve()
- self.window = self.dependency.window
- self.dependency.configureSDKs()
- self.dependency.configureAppearance()
- self.dependency.configureUserAgent()
- self.dependency.congigurePerformance()
- LocalManager.autoLogin()
- // 设置状态栏颜色
- UIApplication.shared.statusBarStyle = .lightContent
- return true
- }
-
- func application(
- _ app: UIApplication,
- open url: URL,
- options: [UIApplication.OpenURLOptionsKey: Any] = [:]
- ) -> Bool {
- return self.dependency.openURL(url, options)
- }
- }
|