Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
YDL-Component-Medical
Overview
Overview
Details
Activity
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
杨凯
YDL-Component-Medical
Commits
c7958cce
Commit
c7958cce
authored
Dec 20, 2019
by
konghaorui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改三方SDK初始化时机
parent
8c95cdc8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
YdlRepository.kt
ydl-platform/src/main/java/com/ydl/ydlcommon/app/YdlRepository.kt
+5
-1
AppDelegate.kt
ydl-platform/src/main/java/com/ydl/ydlcommon/base/delegate/AppDelegate.kt
+3
-4
No files found.
ydl-platform/src/main/java/com/ydl/ydlcommon/app/YdlRepository.kt
View file @
c7958cce
...
...
@@ -5,9 +5,11 @@ import android.app.Application
import
com.alibaba.android.arouter.launcher.ARouter
import
com.lzy.imagepicker.ImagePicker
import
com.lzy.imagepicker.view.CropImageView
import
com.ydl.devicesidlib.DeviceIDHelper
import
com.ydl.ydlcommon.actions.imagepicker.YdlImageLoader
import
com.ydl.ydlcommon.base.BaseApp
import
com.ydl.ydlcommon.data.http.UpLoadLogUtils
import
com.ydl.ydlcommon.utils.AppProgressUtils
import
com.ydl.ydlcommon.utils.BuryPointUtils
import
com.ydl.ydlcommon.utils.LogUtil
import
com.ydl.ydlcommon.utils.log.LogHelper
...
...
@@ -27,7 +29,9 @@ object YdlRepository {
// 需要在主 module 的 application 的 onCreate 方法中调用此方法
fun
initApp
(
app
:
Application
,
isDebug
:
Boolean
)
{
//DeviceIDHelper.getInstance().init(app.applicationContext)
if
(
AppProgressUtils
.
isMainProcess
(
app
)){
DeviceIDHelper
.
getInstance
().
init
(
app
.
applicationContext
)
}
LogHelper
.
getInstance
().
deleteExpireLogSync
()
LogUtil
.
debug
=
BaseApp
.
instance
.
getGlobalConfig
().
appDebug
com
.
yidianling
.
common
.
tools
.
LogUtil
.
debug
=
BaseApp
.
instance
.
getGlobalConfig
().
appDebug
...
...
ydl-platform/src/main/java/com/ydl/ydlcommon/base/delegate/AppDelegate.kt
View file @
c7958cce
...
...
@@ -47,10 +47,9 @@ class AppDelegate(context: Context) : IAppLifecycles,IApp{
mGlobalConfig
=
initModuleConfig
(
application
,
mModules
!!
)
mGlobalConfig
!!
.
initEnv
()
if
(
AppProgressUtils
.
isMainProcess
(
application
)){
//初始化YDL第三方依赖
YdlRepository
.
initApp
(
application
,
mGlobalConfig
?.
appDebug
?:
false
)
}
//初始化YDL第三方依赖
YdlRepository
.
initApp
(
application
,
mGlobalConfig
?.
appDebug
?:
false
)
//执行 扩展的 App onCreate 逻辑
...
...
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