Commit 3c88c9b8 authored by 王雪伟's avatar 王雪伟

[提交人]:王雪伟

[提交简述] :小象省钱
[实现方案] :修改buglykey
parent 8eed6857
...@@ -28,23 +28,15 @@ class Appli : Application() { ...@@ -28,23 +28,15 @@ class Appli : Application() {
override fun onCreate() { override fun onCreate() {
super.onCreate() super.onCreate()
AppContext.init(applicationContext) AppContext.init(applicationContext)
UMConfigure.setLogEnabled(true) UMConfigure.setLogEnabled(false)
UMConfigure.init(this, UMConfigure.DEVICE_TYPE_PHONE, "") UMConfigure.init(this, UMConfigure.DEVICE_TYPE_PHONE, "")
Utils.checkDebugMode(this) Utils.checkDebugMode(this)
PlatformConfig.setWeixin(Constant.WX_APPID, Constant.WX_APPKEY) PlatformConfig.setWeixin(Constant.WX_APPID, Constant.WX_APPKEY)
PlatformConfig.setWXFileProvider("com.tencent.sample2.fileprovider"); PlatformConfig.setWXFileProvider("com.tencent.sample2.fileprovider");
// UMConfigure.setLogEnabled(true);
Config.init(this) Config.init(this)
// mChildApplicationList.add(ApplicationMain())
//
//
// for (app in mChildApplicationList) {
// app.onCreateAsLibrary(this)
// }
//初始化bugly //初始化bugly
CrashReport.initCrashReport(applicationContext, "b91ee4f3b1", false); CrashReport.initCrashReport(applicationContext, "f9fb9a9ef5", false);
getOaid() getOaid()
// 5e675d470cafb2bcc7000223
initByteDance() initByteDance()
val helper = AppFrontBackHelper() val helper = AppFrontBackHelper()
helper.register(this, object : AppFrontBackHelper.OnAppStatusListener { helper.register(this, object : AppFrontBackHelper.OnAppStatusListener {
......
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