Commit 0dbf9893 by 严久程
parents ad196782 64f5443e
...@@ -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);
} }
......
ext { ext {
kotlin_version = "1.3.21" kotlin_version = "1.3.21"
dev_mode = true dev_mode = false
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 = [
......
...@@ -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"]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment