mirror of
https://github.com/gedoor/legado.git
synced 2025-01-09 04:17:45 +08:00
优化
This commit is contained in:
parent
48e14647be
commit
ed27daca63
1
app/proguard-rules.pro
vendored
1
app/proguard-rules.pro
vendored
@ -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
|
||||
|
@ -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>
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user