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
efdc7465
Commit
efdc7465
authored
Jun 13, 2024
by
David黄金龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
统一编码
parent
e9e7e7aa
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
33 additions
and
24 deletions
+33
-24
AppDelegate.swift
galaxy/galaxy/AppDelegate.swift
+6
-6
Applegate(JPush).swift
galaxy/galaxy/Applegate(JPush).swift
+1
-1
YHAnalytics.swift
galaxy/galaxy/Classes/Tools/Analytics/YHAnalytics.swift
+3
-9
YhConstant.swift
galaxy/galaxy/Classes/Tools/Helper/YhConstant.swift
+23
-8
No files found.
galaxy/galaxy/AppDelegate.swift
View file @
efdc7465
...
@@ -44,9 +44,9 @@ class AppDelegate: UIResponder, UIApplicationDelegate, WXApiDelegate {
...
@@ -44,9 +44,9 @@ class AppDelegate: UIResponder, UIApplicationDelegate, WXApiDelegate {
preloadOP
()
preloadOP
()
//微信注册app
//微信注册app
WXApi
.
registerApp
(
"wx06b21f3c7a5ba594"
,
universalLink
:
"https://www.galaxy-immi.com/app1/"
)
WXApi
.
registerApp
(
YhConstant
.
Wechat
.
appKey
,
universalLink
:
YhConstant
.
Wechat
.
universalLink
)
WXApi
.
startLog
(
by
:
.
detail
)
{
string
in
WXApi
.
startLog
(
by
:
.
detail
)
{
string
in
print
(
"
\(
string
)
"
)
print
Log
(
string
)
}
}
// 一键登录
// 一键登录
...
@@ -102,7 +102,7 @@ extension AppDelegate {
...
@@ -102,7 +102,7 @@ extension AppDelegate {
private
func
thirdSetting
()
->
Void
{
private
func
thirdSetting
()
->
Void
{
//1.数据解析
//1.数据解析
#if DEBUG
#if DEBUG
SmartConfig
.
debugMode
=
.
none
#elseif TESTNEV
#elseif TESTNEV
SmartConfig
.
debugMode
=
.
none
SmartConfig
.
debugMode
=
.
none
#else
#else
...
@@ -111,11 +111,11 @@ extension AppDelegate {
...
@@ -111,11 +111,11 @@ extension AppDelegate {
//2.bugly参数设置
//2.bugly参数设置
#if DEBUG
#if DEBUG
Bugly
.
start
(
withAppId
:
"3b10faa43e"
)
Bugly
.
start
(
withAppId
:
YhConstant
.
Bugly
.
appidForTest
)
#elseif TESTNEV
#elseif TESTNEV
Bugly
.
start
(
withAppId
:
"3b10faa43e"
)
Bugly
.
start
(
withAppId
:
YhConstant
.
Bugly
.
appidForTest
)
#else
#else
Bugly
.
start
(
withAppId
:
"5dc2acc53e"
)
Bugly
.
start
(
withAppId
:
YhConstant
.
Bugly
.
appidForRelease
)
#endif
#endif
}
}
...
...
galaxy/galaxy/Applegate(JPush).swift
View file @
efdc7465
...
@@ -38,7 +38,7 @@ extension AppDelegate: JPUSHRegisterDelegate {
...
@@ -38,7 +38,7 @@ extension AppDelegate: JPUSHRegisterDelegate {
let
isProduction
=
true
let
isProduction
=
true
#endif
#endif
JPUSHService
.
setup
(
withOption
:
launchOptions
,
JPUSHService
.
setup
(
withOption
:
launchOptions
,
appKey
:
"c6a9e10575b85ee90f3e8afe"
,
appKey
:
YhConstant
.
Jpush
.
appKey
,
channel
:
"appStore"
,
channel
:
"appStore"
,
apsForProduction
:
isProduction
)
apsForProduction
:
isProduction
)
}
}
...
...
galaxy/galaxy/Classes/Tools/Analytics/YHAnalytics.swift
View file @
efdc7465
...
@@ -14,26 +14,20 @@ class YHAnalytics {
...
@@ -14,26 +14,20 @@ class YHAnalytics {
// 分析初始化
// 分析初始化
static
func
analyticsStart
(
launchOptions
:
[
UIApplication
.
LaunchOptionsKey
:
Any
]?)
{
static
func
analyticsStart
(
launchOptions
:
[
UIApplication
.
LaunchOptionsKey
:
Any
]?)
{
#if DEBUG
#if DEBUG
let
options
=
SAConfigOptions
.
init
(
serverURL
:
"https://importsensors.galaxy-immi.com/sa?project=default"
,
launchOptions
:
launchOptions
)
let
options
=
SAConfigOptions
.
init
(
serverURL
:
YhConstant
.
SensorsAnalytics
.
urlForTest
,
launchOptions
:
launchOptions
)
//开启log
//开启log
options
.
enableLog
=
true
options
.
enableLog
=
true
SensorsAnalyticsSDK
.
sharedInstance
()?
.
set
([
"evn"
:
"test"
])
SensorsAnalyticsSDK
.
sharedInstance
()?
.
set
([
"evn"
:
"test"
])
#elseif TESTENV
#elseif TESTENV
let
options
=
SAConfigOptions
.
init
(
serverURL
:
"https://importsensors.galaxy-immi.com/sa?project=default"
,
launchOptions
:
launchOptions
)
let
options
=
SAConfigOptions
.
init
(
serverURL
:
YhConstant
.
SensorsAnalytics
.
urlForTest
,
launchOptions
:
launchOptions
)
//开启log
//开启log
options
.
enableLog
=
true
options
.
enableLog
=
true
SensorsAnalyticsSDK
.
sharedInstance
()?
.
set
([
"evn"
:
"test"
])
SensorsAnalyticsSDK
.
sharedInstance
()?
.
set
([
"evn"
:
"test"
])
#else
#else
let
options
=
SAConfigOptions
.
init
(
serverURL
:
"url地址,由管理员提供"
,
launchOptions
:
launchOptions
)
let
options
=
SAConfigOptions
.
init
(
serverURL
:
YhConstant
.
SensorsAnalytics
.
urlForRelease
,
launchOptions
:
launchOptions
)
//开启log
//开启log
options
.
enableLog
=
false
options
.
enableLog
=
false
SensorsAnalyticsSDK
.
sharedInstance
()?
.
set
([
"evn"
:
"production"
])
SensorsAnalyticsSDK
.
sharedInstance
()?
.
set
([
"evn"
:
"production"
])
#endif
#endif
/**
/**
...
...
galaxy/galaxy/Classes/Tools/Helper/YhConstant.swift
View file @
efdc7465
...
@@ -161,21 +161,36 @@ func goTabBarBy(tabType : tabBarPageType) {
...
@@ -161,21 +161,36 @@ func goTabBarBy(tabType : tabBarPageType) {
class
YhConstant
{
class
YhConstant
{
// MARK: - 登录信息
// MARK: - 登录信息
static
let
KLoginedInfoKey
=
"KLoginedInfoKey"
static
let
KLoginedInfoKey
=
"KLoginedInfoKey"
//登录后的用户信息
static
let
kLoginUserInfo
=
"loginUserInfo"
}
}
extension
YhConstant
{
extension
YhConstant
{
//登录后的用户信息
// MARK: - bugly
static
let
kLoginUserInfo
=
"loginUserInfo"
struct
Bugly
{
static
let
appidForTest
=
"3b10faa43e"
static
let
appidForRelease
=
"5dc2acc53e"
}
// MARK: - 友盟相关
// MARK: - 神策
struct
Wechat
{
struct
SensorsAnalytics
{
static
let
appKey
=
"wx57b2a7469d15ff8f"
static
let
urlForTest
=
"https://importsensors.galaxy-immi.com/sa?project=default"
static
let
AppSecret
=
"e0a351290c66c05f85c54a31b213c1aa"
static
let
urlForRelease
=
"https://importsensors.galaxy-immi.com/sa?project=production_1"
}
// MARK: - 极光推送
struct
Jpush
{
static
let
appKey
=
"c6a9e10575b85ee90f3e8afe"
}
}
struct
UM
{
// MARK: - 微信相关
static
let
appKey
=
"5a77b807a40fa30f0300008b"
struct
Wechat
{
static
let
appKey
=
"wx06b21f3c7a5ba594"
static
let
universalLink
=
"https://www.galaxy-immi.com/app1/"
}
}
// MARK: - 支付宝
// MARK: - 支付宝
...
...
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