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
0dbf9893
Commit
0dbf9893
authored
Jan 06, 2020
by
严久程
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
ssh://gitlab.yidianling.com:2224/app_android_lib/YDL-Component
into dev
parents
ad196782
64f5443e
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
49 additions
and
48 deletions
+49
-48
DemoAppLifecycles.java
app/src/main/java/com/ydl/component/base/DemoAppLifecycles.java
+20
-18
config.gradle
config.gradle
+27
-28
build.gradle
ydl-platform/build.gradle
+2
-2
No files found.
app/src/main/java/com/ydl/component/base/DemoAppLifecycles.java
View file @
0dbf9893
...
@@ -12,6 +12,7 @@ import com.facebook.stetho.Stetho;
...
@@ -12,6 +12,7 @@ import com.facebook.stetho.Stetho;
import
com.meituan.android.walle.WalleChannelReader
;
import
com.meituan.android.walle.WalleChannelReader
;
import
com.netease.nimlib.sdk.util.NIMUtil
;
import
com.netease.nimlib.sdk.util.NIMUtil
;
import
com.tencent.bugly.crashreport.CrashReport
;
import
com.tencent.bugly.crashreport.CrashReport
;
import
com.tencent.smtt.sdk.QbSdk
;
import
com.umeng.analytics.MobclickAgent
;
import
com.umeng.analytics.MobclickAgent
;
import
com.umeng.commonsdk.UMConfigure
;
import
com.umeng.commonsdk.UMConfigure
;
import
com.umeng.socialize.PlatformConfig
;
import
com.umeng.socialize.PlatformConfig
;
...
@@ -83,7 +84,7 @@ public class DemoAppLifecycles implements IAppLifecycles {
...
@@ -83,7 +84,7 @@ public class DemoAppLifecycles implements IAppLifecycles {
Process
.
setThreadPriority
(
Process
.
THREAD_PRIORITY_BACKGROUND
);
Process
.
setThreadPriority
(
Process
.
THREAD_PRIORITY_BACKGROUND
);
//子线程中初始化X5内核,防止ANR问题
//子线程中初始化X5内核,防止ANR问题
initX5
();
initX5
(
application
);
if
(
DemoGlobalConfig
.
appEnv
.
equals
(
YDLConstants
.
ENV_PROD
)){
if
(
DemoGlobalConfig
.
appEnv
.
equals
(
YDLConstants
.
ENV_PROD
)){
// YDLavManager.Companion.getInstances().init(application, "3387e9b251f3491e9221a9877e8f7830");
// YDLavManager.Companion.getInstances().init(application, "3387e9b251f3491e9221a9877e8f7830");
...
@@ -152,24 +153,25 @@ public class DemoAppLifecycles implements IAppLifecycles {
...
@@ -152,24 +153,25 @@ public class DemoAppLifecycles implements IAppLifecycles {
/**
/**
* 初始化X5内核
* 初始化X5内核
* @param application
*/
*/
private
void
initX5
()
{
private
void
initX5
(
Application
application
)
{
//
if (!QbSdk.isTbsCoreInited()) {//// preinit只需要调用一次,如果已经完成了初始化,那么就直接构造view
if
(!
QbSdk
.
isTbsCoreInited
())
{
//// preinit只需要调用一次,如果已经完成了初始化,那么就直接构造view
//
QbSdk.preInit(application, null);// 设置X5初始化完成的回调接口
QbSdk
.
preInit
(
application
,
null
);
// 设置X5初始化完成的回调接口
//
}
}
//
//
QbSdk.PreInitCallback cb = new QbSdk.PreInitCallback() {
QbSdk
.
PreInitCallback
cb
=
new
QbSdk
.
PreInitCallback
()
{
//
//
@Override
@Override
//
public void onViewInitFinished(boolean arg0) {
public
void
onViewInitFinished
(
boolean
arg0
)
{
//
//初始化完成回调
//初始化完成回调
//
}
}
//
//
@Override
@Override
//
public void onCoreInitFinished() {
public
void
onCoreInitFinished
()
{
//
}
}
//
};
};
//
QbSdk.initX5Environment(application, cb);
QbSdk
.
initX5Environment
(
application
,
cb
);
}
}
...
...
config.gradle
View file @
0dbf9893
ext
{
ext
{
kotlin_version
=
"1.3.21"
kotlin_version
=
"1.3.21"
dev_mode
=
tru
e
dev_mode
=
fals
e
ydl_app
=
[
ydl_app
=
[
appName
:
"心理咨询壹点灵"
,
appName
:
"心理咨询壹点灵"
,
...
@@ -42,17 +42,17 @@ ext {
...
@@ -42,17 +42,17 @@ ext {
ydlPublishVersion
=
[
ydlPublishVersion
=
[
// -------------- 业务模块 --------------
// -------------- 业务模块 --------------
//第三步 若干
//第三步 若干
"m-confide"
:
"0.0.42"
,
"m-confide"
:
"0.0.42
.1
"
,
"m-consultant"
:
"0.0.52"
,
"m-consultant"
:
"0.0.52
.1
"
,
"m-fm"
:
"0.0.24"
,
"m-fm"
:
"0.0.24
.1
"
,
"m-user"
:
"0.0.42"
,
"m-user"
:
"0.0.42
.1
"
,
"m-home"
:
"0.0.8.
3
"
,
"m-home"
:
"0.0.8.
4
"
,
"m-im"
:
"0.0.4.
4
"
,
"m-im"
:
"0.0.4.
6
"
,
"m-dynamic"
:
"0.0.2.
1
"
,
"m-dynamic"
:
"0.0.2.
2
"
,
"m-muse"
:
"0.0.21.
1
"
,
"m-muse"
:
"0.0.21.
2
"
,
"m-tests"
:
"0.0.16.
1
"
,
"m-tests"
:
"0.0.16.
2
"
,
"m-course"
:
"0.0.35.
2
"
,
"m-course"
:
"0.0.35.
3
"
,
//-------------- 业务模块 API 层 --------------
//-------------- 业务模块 API 层 --------------
"m-audioim-api"
:
"0.0.5"
,
"m-audioim-api"
:
"0.0.5"
,
...
@@ -69,19 +69,19 @@ ext {
...
@@ -69,19 +69,19 @@ ext {
//-------------- 功能组件 --------------
//-------------- 功能组件 --------------
//第一步
//第一步
"ydl-platform"
:
"0.0.30.3"
,
"ydl-platform"
:
"0.0.30.4"
,
//第二步 若干
"ydl-webview"
:
"0.0.29"
,
//第二步 若干
"ydl-media"
:
"0.0.15"
,
"ydl-webview"
:
"0.0.29.1"
,
"ydl-pay"
:
"0.0.12"
,
"ydl-media"
:
"0.0.15.1"
,
"m-audioim"
:
"0.0.41"
,
"ydl-pay"
:
"0.0.12.1"
,
"m-audioim"
:
"0.0.41.1"
,
"ydl-flutter-base"
:
"0.0.5.23"
,
//以下 几乎不会动
//以下 几乎不会动
"router"
:
"0.0.1"
,
"router"
:
"0.0.1"
,
"ydl-net"
:
"0.0.3.1"
,
"ydl-net"
:
"0.0.3.1"
,
"ydl-utils"
:
"0.0.3"
,
"ydl-utils"
:
"0.0.3.1"
,
"ydl-flutter-base"
:
"0.0.5.22"
,
]
]
...
@@ -115,20 +115,19 @@ ext {
...
@@ -115,20 +115,19 @@ ext {
//-------------- 功能组件 --------------
//-------------- 功能组件 --------------
//第一步
//第一步
"ydl-platform"
:
"0.0.30.
3
"
,
"ydl-platform"
:
"0.0.30.
4
"
,
//第二步 若干
//第二步 若干
"ydl-webview"
:
"0.0.29"
,
"ydl-webview"
:
"0.0.29.1"
,
"ydl-media"
:
"0.0.15"
,
"ydl-media"
:
"0.0.15.1"
,
"ydl-pay"
:
"0.0.12"
,
"ydl-pay"
:
"0.0.12.1"
,
"m-audioim"
:
"0.0.41"
,
"m-audioim"
:
"0.0.41.1"
,
"ydl-flutter-base"
:
"0.0.5.23"
,
//以下 几乎不会动
//以下 几乎不会动
"router"
:
"0.0.1"
,
"router"
:
"0.0.1"
,
"ydl-net"
:
"0.0.3.1"
,
"ydl-net"
:
"0.0.3.1"
,
"ydl-utils"
:
"0.0.3"
,
"ydl-utils"
:
"0.0.3.1"
,
"ydl-flutter-base"
:
"0.0.5.22"
,
]
]
dependencies
=
[
dependencies
=
[
...
...
ydl-platform/build.gradle
View file @
0dbf9893
...
@@ -87,8 +87,8 @@ dependencies {
...
@@ -87,8 +87,8 @@ dependencies {
exclude
group:
'org.jetbrains.kotlin'
,
module:
'kotlin-stdlib-common'
exclude
group:
'org.jetbrains.kotlin'
,
module:
'kotlin-stdlib-common'
}
}
//
api rootProject.ext.dependencies["ydl-utils"]
api
rootProject
.
ext
.
dependencies
[
"ydl-utils"
]
api
project
(
':ydl-utils'
)
//
api project(':ydl-utils')
api
rootProject
.
ext
.
dependencies
[
"ydl-js"
]
api
rootProject
.
ext
.
dependencies
[
"ydl-js"
]
api
rootProject
.
ext
.
dependencies
[
"ydl-net"
]
api
rootProject
.
ext
.
dependencies
[
"ydl-net"
]
api
rootProject
.
ext
.
dependencies
[
"ydl-js"
]
api
rootProject
.
ext
.
dependencies
[
"ydl-js"
]
...
...
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