Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
galaxy-iOS
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mobile-group
galaxy-iOS
Commits
0f33a275
Commit
0f33a275
authored
Jan 03, 2024
by
David黄金龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加 Bugly crash统计
parent
167e7aff
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
7 deletions
+29
-7
Podfile
galaxy/Podfile
+3
-0
AppDelegate.swift
galaxy/galaxy/AppDelegate.swift
+25
-7
galaxy-Bridge-Header.h
galaxy/galaxy/Classes/Others/galaxy-Bridge-Header.h
+1
-0
No files found.
galaxy/Podfile
View file @
0f33a275
...
@@ -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
...
...
galaxy/galaxy/AppDelegate.swift
View file @
0f33a275
...
@@ -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
}
}
}
}
...
...
galaxy/galaxy/Classes/Others/galaxy-Bridge-Header.h
View file @
0f33a275
...
@@ -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 */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment