Commit 31452f8a by 严久程
parents ca2d5acc 687aa649
......@@ -64,6 +64,12 @@
android:launchMode="singleTask"
android:noHistory="true">
</activity>
<service
android:name="com.tencent.smtt.export.external.DexClassLoaderProviderService"
android:label="dexopt"
android:process=":dexopt"
/>
</application>
</manifest>
\ No newline at end of file
......@@ -12,6 +12,7 @@ import com.facebook.stetho.Stetho;
import com.meituan.android.walle.WalleChannelReader;
import com.netease.nimlib.sdk.util.NIMUtil;
import com.tencent.bugly.crashreport.CrashReport;
import com.tencent.smtt.export.external.TbsCoreSettings;
import com.tencent.smtt.sdk.QbSdk;
import com.umeng.analytics.MobclickAgent;
import com.umeng.commonsdk.UMConfigure;
......@@ -28,6 +29,8 @@ import com.yidianling.im.config.NimApplication;
import org.jetbrains.annotations.NotNull;
import java.util.HashMap;
import io.flutter.view.FlutterMain;
/**
......@@ -156,6 +159,11 @@ public class DemoAppLifecycles implements IAppLifecycles {
* @param application
*/
private void initX5(Application application) {
// 在调用TBS初始化、创建WebView之前进行如下配置,以开启优化方案
HashMap map = new HashMap();
map.put(TbsCoreSettings.TBS_SETTINGS_USE_SPEEDY_CLASSLOADER, true);
QbSdk.initTbsSettings(map);
if (!QbSdk.isTbsCoreInited()) {//// preinit只需要调用一次,如果已经完成了初始化,那么就直接构造view
QbSdk.preInit(application, null);// 设置X5初始化完成的回调接口
}
......@@ -172,6 +180,7 @@ public class DemoAppLifecycles implements IAppLifecycles {
}
};
QbSdk.initX5Environment(application, cb);
}
......
......@@ -69,7 +69,7 @@ ext {
//-------------- 功能组件 --------------
//第一步
"ydl-platform" : "0.0.30.4",
"ydl-platform" : "0.0.30.5",
//第二步 若干
"ydl-webview" : "0.0.29.1",
......@@ -115,7 +115,7 @@ ext {
//-------------- 功能组件 --------------
//第一步
"ydl-platform" : "0.0.30.4",
"ydl-platform" : "0.0.30.5",
//第二步 若干
"ydl-webview" : "0.0.29.1",
......@@ -247,7 +247,7 @@ ext {
"bugly-nativecrashreport" : "com.tencent.bugly:nativecrashreport:3.6.0.1",
"ydl-image" : "com.ydl:ydl-image:1.0.7-SNAPSHOT@aar",
"ydl-pushagent" : "com.ydl:pushagent:0.1.1",
"ydl-notracepoint" : "com.ydl:notracepoint-lib:0.2.3@aar",
"ydl-notracepoint" : "com.ydl:notracepoint-lib:0.2.3.1@aar",
"ydl-js" : "com.ydl:ydl-js:1.0.7-SNAPSHOT@aar",
"ydl-router" : "com.ydl:ydl-router:1.3.7-SNAPSHOT@aar",
"xrecyclerview" : "com.ydl:xrecyclerview:1.0.0-SNAPSHOT@aar",
......
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