Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_vedio
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
android
android_vedio
Commits
e613619d
Commit
e613619d
authored
Nov 13, 2024
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
713061bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
GravityEngineManager.kt
...a/com/duben/happyplayletu/manager/GravityEngineManager.kt
+7
-0
No files found.
video/app/src/main/java/com/duben/happyplayletu/manager/GravityEngineManager.kt
View file @
e613619d
...
...
@@ -12,6 +12,8 @@ import com.duben.happyplayletu.utils.DeviceUuidFactory
import
com.duben.happyplayletu.utils.LogUtil
import
com.duben.happyplayletu.utils.MateUtils.getAppMetaData
import
com.duben.library.utils.json.JsonUtil
import
com.duben.happyplayletu.BuildConfig
import
org.json.JSONObject
...
...
@@ -37,6 +39,9 @@ object GravityEngineManager {
try
{
// 在主线程中配置并启动SDK
val
config
:
GEConfig
=
GEConfig
.
getInstance
(
application
,
ACCESS_TOKEN
)
if
(
BuildConfig
.
DEBUG
)
{
config
.
mode
=
GEConfig
.
ModeEnum
.
DEBUG
}
// 保存此实例,后续调用方法均需要用到
val
gravityEngineSDKInstance
=
GravityEngineSDK
.
setupAndStart
(
config
)
gravityEngineSDKInstance
.
initialize
(
...
...
@@ -63,6 +68,8 @@ object GravityEngineManager {
ENABLE_SYNC_ATTRIBUTION
)
}
catch
(
e
:
Exception
)
{
e
.
printStackTrace
()
}
...
...
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