diff --git a/app/build.gradle b/app/build.gradle index 9bc5bdc..6b5c543 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -18,8 +18,8 @@ applicationId "com.casic.app.safetreecontroller" minSdkVersion 23 targetSdkVersion 33 - versionCode 1002 - versionName "1.0.0.2" + versionCode 1003 + versionName "1.0.0.3" ndk { abiFilters "arm64-v8a", "armeabi-v7a", "x86_64", "x86" } @@ -104,4 +104,6 @@ implementation 'com.github.PhilJay:MPAndroidChart:v3.1.0' //HTML解析 implementation 'org.jsoup:jsoup:1.15.3' + //异常日志记录 + implementation 'com.tencent.bugly:crashreport:latest.release' } \ No newline at end of file diff --git a/app/build.gradle b/app/build.gradle index 9bc5bdc..6b5c543 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -18,8 +18,8 @@ applicationId "com.casic.app.safetreecontroller" minSdkVersion 23 targetSdkVersion 33 - versionCode 1002 - versionName "1.0.0.2" + versionCode 1003 + versionName "1.0.0.3" ndk { abiFilters "arm64-v8a", "armeabi-v7a", "x86_64", "x86" } @@ -104,4 +104,6 @@ implementation 'com.github.PhilJay:MPAndroidChart:v3.1.0' //HTML解析 implementation 'org.jsoup:jsoup:1.15.3' + //异常日志记录 + implementation 'com.tencent.bugly:crashreport:latest.release' } \ No newline at end of file diff --git a/app/src/main/java/com/casic/app/safetreecontroller/base/BaseApplication.kt b/app/src/main/java/com/casic/app/safetreecontroller/base/BaseApplication.kt index 83ea1f8..94a2e0e 100644 --- a/app/src/main/java/com/casic/app/safetreecontroller/base/BaseApplication.kt +++ b/app/src/main/java/com/casic/app/safetreecontroller/base/BaseApplication.kt @@ -2,6 +2,7 @@ import android.app.Application import com.pengxh.kt.lite.utils.SaveKeyValues +import com.tencent.bugly.crashreport.CrashReport import kotlin.properties.Delegates class BaseApplication : Application() { @@ -16,5 +17,6 @@ super.onCreate() application = this SaveKeyValues.initSharedPreferences(this) + CrashReport.initCrashReport(this, "838ae655cb", true) } } \ No newline at end of file