Commit 8ea2f362 authored by David黄金龙's avatar David黄金龙

添加 条件编译代码

parent 04252921
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
import UIKit import UIKit
import ESTabBarController_swift import ESTabBarController_swift
import IQKeyboardManagerSwift import IQKeyboardManagerSwift
import SmartCodable
@main @main
class AppDelegate: UIResponder, UIApplicationDelegate { class AppDelegate: UIResponder, UIApplicationDelegate {
...@@ -49,10 +50,10 @@ extension AppDelegate { ...@@ -49,10 +50,10 @@ extension AppDelegate {
//2、一键登录初始化 //2、一键登录初始化
// TXCommonHandler.sharedInstance().setAuthSDKInfo(BsConstant.kAliOnePressPhoneLoginKey) // TXCommonHandler.sharedInstance().setAuthSDKInfo(BsConstant.kAliOnePressPhoneLoginKey)
//3.微信登录初始化 //3.微信登录初始化
// BsWxLoginManager.shared.doWxInit() // BsWxLoginManager.shared.doWxInit()
//4. //4.
IQKeyboardManager.shared.enable = true IQKeyboardManager.shared.enable = true
...@@ -60,7 +61,7 @@ extension AppDelegate { ...@@ -60,7 +61,7 @@ extension AppDelegate {
IQKeyboardManager.shared.shouldResignOnTouchOutside = true // 控制点击背景是否收起键盘 IQKeyboardManager.shared.shouldResignOnTouchOutside = true // 控制点击背景是否收起键盘
//webView 预加载 //webView 预加载
// BsWebViewPreloadManager.share.addPreloadingView() // BsWebViewPreloadManager.share.addPreloadingView()
// //
customAppearance() customAppearance()
...@@ -88,6 +89,13 @@ extension AppDelegate { ...@@ -88,6 +89,13 @@ extension AppDelegate {
window?.rootViewController = tabBarController window?.rootViewController = tabBarController
window?.makeKeyAndVisible() window?.makeKeyAndVisible()
window?.backgroundColor = .white window?.backgroundColor = .white
//处理数据解析
#if DEBUG
SmartConfig.debugMode = .verbose
#else
SmartConfig.debugMode = .none
#endif
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment