This commit is contained in:
Horis
2023-03-09 21:38:26 +08:00
parent 08acafadc2
commit 8468d77510
3 changed files with 11 additions and 0 deletions
@@ -3,6 +3,7 @@ package io.legado.app.help
import android.annotation.SuppressLint
import android.content.Context
import android.os.Build
import android.webkit.WebSettings
import io.legado.app.constant.AppConst
import io.legado.app.model.ReadAloud
import io.legado.app.utils.FileUtils
@@ -65,6 +66,7 @@ class CrashHandler(val context: Context) : Thread.UncaughtExceptionHandler {
map["MODEL"] = Build.MODEL
map["SDK_INT"] = Build.VERSION.SDK_INT.toString()
map["RELEASE"] = Build.VERSION.RELEASE
map["WebViewUserAgent"] = WebSettings.getDefaultUserAgent(appCtx)
//获取app版本信息
AppConst.appInfo.let {
map["versionName"] = it.versionName