This commit is contained in:
Horis 2023-03-09 21:38:26 +08:00
parent 48e14647be
commit ed27daca63
3 changed files with 11 additions and 0 deletions

View File

@ -392,6 +392,7 @@
-keep class io.legado.app.lib.cronet.CronetInterceptor{*;}
-keep class io.legado.app.lib.cronet.CronetLoader{*;}
-keep class io.legado.app.help.AppUpdateGitHub{*;}
-keep class io.legado.app.help.AppIntentType{*;}
# Error Exception
-keep class * extends java.lang.Exception
-keep class * extends java.lang.Error

View File

@ -381,12 +381,20 @@
<data android:mimeType="*/*" />
<!--TXT-->
<data android:pathAdvancedPattern=".*\\.[tT][xX][tT]" />
<data android:pathPattern=".*\\.txt" />
<data android:pathPattern=".*\\.TXT" />
<!--JSON-->
<data android:pathAdvancedPattern=".*\\.[jJ][sS][oO][nN]" />
<data android:pathPattern=".*\\.json" />
<data android:pathPattern=".*\\.JSON" />
<!-- EPUB -->
<data android:pathAdvancedPattern=".*\\.[eE][pP][uU][bB]" />
<data android:pathPattern=".*\\.epub" />
<data android:pathPattern=".*\\.EPUB" />
<!-- pdf -->
<data android:pathAdvancedPattern=".*\\.[pP][dD][fF]" />
<data android:pathPattern=".*\\.pdf" />
<data android:pathPattern=".*\\.PDF" />
</intent-filter>
</activity>

View File

@ -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