| | |
| | | import JQTools |
| | | import Alamofire |
| | | import AMapFoundationKit |
| | | import SDWebImage |
| | | |
| | | @main |
| | | class AppDelegate: UIResponder, UIApplicationDelegate { |
| | |
| | | |
| | | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { |
| | | Services.startNetworkMonitor() |
| | | // WXApi.startLog(by: .normal) { text in |
| | | // print("LOGO====>\(text)\n") |
| | | // } |
| | | YYPaymentManager.shared.configuredWeChat(appID: WeChatAPPID, universalLink: WechatUniversalLinks) |
| | | YYPaymentManager.shared.configuredAlipay(appScheme: APPScheme) |
| | | AMapServices.shared().enableHTTPS = true |
| | | AMapServices.shared().apiKey = AMapKey |
| | | // WXApi.checkUniversalLinkReady { step, result in |
| | | // print("====>\(step.rawValue):\(result.errorInfo)====\(result.suggestion)\n") |
| | | // |
| | | // } |
| | | |
| | | Services.querySystemImg(type: .launch).subscribe(onNext: {data in |
| | | if let img = data.data{ |
| | | SDWebImageDownloader.shared.downloadImage(with: URL(string: img)) { image, _, _, _ in |
| | | if let img = image{ |
| | | LaunchImageHelper.changePortraitLaunchImage(img) |
| | | } |
| | | } |
| | | } |
| | | }).disposed(by: JQ_disposeBag) |
| | | return true |
| | | } |
| | | |