Commit 62e21a4b by konghaorui

修改无痕埋点lib版本号

parent 64f5443e
...@@ -64,6 +64,12 @@ ...@@ -64,6 +64,12 @@
android:launchMode="singleTask" android:launchMode="singleTask"
android:noHistory="true"> android:noHistory="true">
</activity> </activity>
<service
android:name="com.tencent.smtt.export.external.DexClassLoaderProviderService"
android:label="dexopt"
android:process=":dexopt"
/>
</application> </application>
</manifest> </manifest>
\ No newline at end of file
...@@ -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.export.external.TbsCoreSettings;
import com.tencent.smtt.sdk.QbSdk; 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;
...@@ -28,6 +29,8 @@ import com.yidianling.im.config.NimApplication; ...@@ -28,6 +29,8 @@ import com.yidianling.im.config.NimApplication;
import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.NotNull;
import java.util.HashMap;
import io.flutter.view.FlutterMain; import io.flutter.view.FlutterMain;
/** /**
...@@ -156,6 +159,11 @@ public class DemoAppLifecycles implements IAppLifecycles { ...@@ -156,6 +159,11 @@ public class DemoAppLifecycles implements IAppLifecycles {
* @param application * @param application
*/ */
private void initX5(Application 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 if (!QbSdk.isTbsCoreInited()) {//// preinit只需要调用一次,如果已经完成了初始化,那么就直接构造view
QbSdk.preInit(application, null);// 设置X5初始化完成的回调接口 QbSdk.preInit(application, null);// 设置X5初始化完成的回调接口
} }
...@@ -172,6 +180,7 @@ public class DemoAppLifecycles implements IAppLifecycles { ...@@ -172,6 +180,7 @@ public class DemoAppLifecycles implements IAppLifecycles {
} }
}; };
QbSdk.initX5Environment(application, cb); QbSdk.initX5Environment(application, cb);
} }
......
...@@ -247,7 +247,7 @@ ext { ...@@ -247,7 +247,7 @@ ext {
"bugly-nativecrashreport" : "com.tencent.bugly:nativecrashreport:3.6.0.1", "bugly-nativecrashreport" : "com.tencent.bugly:nativecrashreport:3.6.0.1",
"ydl-image" : "com.ydl:ydl-image:1.0.7-SNAPSHOT@aar", "ydl-image" : "com.ydl:ydl-image:1.0.7-SNAPSHOT@aar",
"ydl-pushagent" : "com.ydl:pushagent:0.1.1", "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-js" : "com.ydl:ydl-js:1.0.7-SNAPSHOT@aar",
"ydl-router" : "com.ydl:ydl-router:1.3.7-SNAPSHOT@aar", "ydl-router" : "com.ydl:ydl-router:1.3.7-SNAPSHOT@aar",
"xrecyclerview" : "com.ydl:xrecyclerview:1.0.0-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