Commit 7f1b5c8d by 王文龙

[add]添加bugly

parent 556ccc3b
......@@ -94,9 +94,14 @@ dependencies {
implementation 'com.android.support:multidex:1.0.3'
implementation("com.offcn.live:titleview:1.1.0-s1")
implementation("com.offcn.live:imsdk-kit:1.0.0.33")
implementation("com.offcn.live:imsdk-kit:1.0.0.39")
// DB
implementation 'org.greenrobot:greendao:3.2.2'
implementation 'com.android.volley:volley:1.1.1'
implementation 'com.tencent.bugly:crashreport:latest.release'
//其中latest.release指代最新Bugly SDK版本号,也可以指定明确的版本号,例如2.1.9
implementation 'com.tencent.bugly:nativecrashreport:latest.release'
//其中latest.release指代最新Bugly NDK版本号,也可以指定明确的版本号,例如3.0
}
\ No newline at end of file
......@@ -74,13 +74,11 @@
<!-- 中公IM平台appkey-->
<meta-data
android:name="com.offcn.live.im.appkey"
android:value="offcn_live" />
<!-- android:value="461cea0d0f9e6969b8a40eef697b0457" />-->
android:value="d5b410cddbcb4f3a972cfdc697daff43" />
<!-- android:value="offcn_live" />-->
<meta-data
android:name="com.offcn.live.im.appsecret"
android:value="offcn_im" />
<!-- android:value="80b0d072d5a4" />-->
android:value="b23f77e463ac4e9388b3c0b4ee9b8ed0" />
<!-- android:value="offcn_im" />-->
<!--华为推送。根目录下添加 agconnect-services.json,由华为开放平台自行获取-->
......
......@@ -14,6 +14,7 @@ import com.offcn.live.im.OIMSDK;
import com.offcn.live.im.bean.OIMMsg;
import com.offcn.live.im.bean.OIMUserInfo;
import com.offcn.live.im.util.ZGLLogUtils;
import com.tencent.bugly.crashreport.CrashReport;
import java.util.logging.LogManager;
......@@ -23,7 +24,7 @@ import androidx.multidex.MultiDexApplication;
public class MyApp extends MultiDexApplication {
private static final String TAG = MyApp.class.getSimpleName();
private boolean mEnvIsTest = true;
private boolean mEnvIsTest = false;
@Override
protected void attachBaseContext(Context base) {
......@@ -38,6 +39,8 @@ public class MyApp extends MultiDexApplication {
Constants.ENV_IS_TEST = mEnvIsTest;
// 初始化 OIMSDK
initOIMSDK();
// bugly
CrashReport.initCrashReport(getApplicationContext(), "8cda8831f2", true);
}
private void initOIMSDK() {
......
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