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

添加 Bugly crash统计

parent 167e7aff
...@@ -59,6 +59,9 @@ target 'galaxy' do ...@@ -59,6 +59,9 @@ target 'galaxy' do
#导航栏、手势 #导航栏、手势
pod 'GKNavigationBarSwift','1.6.5' pod 'GKNavigationBarSwift','1.6.5'
#crash统计
pod 'Bugly','2.5.93'
end end
......
...@@ -18,8 +18,12 @@ class AppDelegate: UIResponder, UIApplicationDelegate { ...@@ -18,8 +18,12 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
//1.设置主窗口 //1.设置主窗口
setupRootVC() setupRootVC()
//2.通用UI设置 //2.通用UI设置
setupWholeUI() setupWholeUI()
//3.其他第三方sdk设置
thirdSetting()
return true return true
} }
} }
...@@ -27,6 +31,27 @@ class AppDelegate: UIResponder, UIApplicationDelegate { ...@@ -27,6 +31,27 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
extension AppDelegate { 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设置相关 //2.通用全局UI设置相关
private func setupWholeUI() -> Void { private func setupWholeUI() -> Void {
...@@ -92,13 +117,6 @@ extension AppDelegate { ...@@ -92,13 +117,6 @@ 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
} }
} }
......
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
#import "YHSMSCodeInputView.h" #import "YHSMSCodeInputView.h"
#import "YHSMSCodeView.h" #import "YHSMSCodeView.h"
#import <Bugly/Bugly.h>
#endif /* galaxy_Bridge_Header_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