Commit 0f33a275 authored by David黄金龙's avatar David黄金龙

添加 Bugly crash统计

parent 167e7aff
......@@ -59,6 +59,9 @@ target 'galaxy' do
#导航栏、手势
pod 'GKNavigationBarSwift','1.6.5'
#crash统计
pod 'Bugly','2.5.93'
end
......
......@@ -18,8 +18,12 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
//1.设置主窗口
setupRootVC()
//2.通用UI设置
setupWholeUI()
//3.其他第三方sdk设置
thirdSetting()
return true
}
}
......@@ -27,6 +31,27 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
extension AppDelegate {
//
private func thirdSetting() -> Void {
DispatchQueue.global().async {
//1.数据解析
#if DEBUG
SmartConfig.debugMode = .verbose
#else
SmartConfig.debugMode = .none
#endif
//2.bugly参数设置
#if DEBUG
Bugly.start(withAppId: "3b10faa43e")
#else
Bugly.start(withAppId: "5dc2acc53e")
#endif
}
}
//2.通用全局UI设置相关
private func setupWholeUI() -> Void {
......@@ -92,13 +117,6 @@ extension AppDelegate {
window?.rootViewController = tabBarController
window?.makeKeyAndVisible()
window?.backgroundColor = .white
//处理数据解析
#if DEBUG
SmartConfig.debugMode = .verbose
#else
SmartConfig.debugMode = .none
#endif
}
}
......
......@@ -10,6 +10,7 @@
#import "YHSMSCodeInputView.h"
#import "YHSMSCodeView.h"
#import <Bugly/Bugly.h>
#endif /* galaxy_Bridge_Header_h */
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