|
|
|
|
@ -1,6 +1,8 @@
|
|
|
|
|
package com.bjzc.yfdxj;
|
|
|
|
|
|
|
|
|
|
import android.content.Context;
|
|
|
|
|
import android.os.Build;
|
|
|
|
|
|
|
|
|
|
import com.tencent.bugly.crashreport.CrashReport;
|
|
|
|
|
import com.xuexiang.xui.XUI;
|
|
|
|
|
import com.yolanda.nohttp.NoHttp;
|
|
|
|
|
@ -17,7 +19,10 @@ public class MyApplication extends LitePalApplication {
|
|
|
|
|
XUI.init(this);
|
|
|
|
|
NoHttp.initialize(this);
|
|
|
|
|
AutoLayoutConifg.getInstance().useDeviceSize();
|
|
|
|
|
CrashReport.initCrashReport(getApplicationContext(), "efefa9e04c", true);
|
|
|
|
|
CrashReport.UserStrategy strategy = new CrashReport.UserStrategy(getApplicationContext());
|
|
|
|
|
// 通过UserStrategy设置
|
|
|
|
|
strategy.setDeviceModel(Build.MODEL);
|
|
|
|
|
CrashReport.initCrashReport(getApplicationContext(), "efefa9e04c", true,strategy);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
|