优化
This commit is contained in:
Vendored
+1
@@ -392,6 +392,7 @@
|
|||||||
-keep class io.legado.app.lib.cronet.CronetInterceptor{*;}
|
-keep class io.legado.app.lib.cronet.CronetInterceptor{*;}
|
||||||
-keep class io.legado.app.lib.cronet.CronetLoader{*;}
|
-keep class io.legado.app.lib.cronet.CronetLoader{*;}
|
||||||
-keep class io.legado.app.help.AppUpdateGitHub{*;}
|
-keep class io.legado.app.help.AppUpdateGitHub{*;}
|
||||||
|
-keep class io.legado.app.help.AppIntentType{*;}
|
||||||
# Error Exception
|
# Error Exception
|
||||||
-keep class * extends java.lang.Exception
|
-keep class * extends java.lang.Exception
|
||||||
-keep class * extends java.lang.Error
|
-keep class * extends java.lang.Error
|
||||||
|
|||||||
@@ -381,12 +381,20 @@
|
|||||||
<data android:mimeType="*/*" />
|
<data android:mimeType="*/*" />
|
||||||
<!--TXT-->
|
<!--TXT-->
|
||||||
<data android:pathAdvancedPattern=".*\\.[tT][xX][tT]" />
|
<data android:pathAdvancedPattern=".*\\.[tT][xX][tT]" />
|
||||||
|
<data android:pathPattern=".*\\.txt" />
|
||||||
|
<data android:pathPattern=".*\\.TXT" />
|
||||||
<!--JSON-->
|
<!--JSON-->
|
||||||
<data android:pathAdvancedPattern=".*\\.[jJ][sS][oO][nN]" />
|
<data android:pathAdvancedPattern=".*\\.[jJ][sS][oO][nN]" />
|
||||||
|
<data android:pathPattern=".*\\.json" />
|
||||||
|
<data android:pathPattern=".*\\.JSON" />
|
||||||
<!-- EPUB -->
|
<!-- EPUB -->
|
||||||
<data android:pathAdvancedPattern=".*\\.[eE][pP][uU][bB]" />
|
<data android:pathAdvancedPattern=".*\\.[eE][pP][uU][bB]" />
|
||||||
|
<data android:pathPattern=".*\\.epub" />
|
||||||
|
<data android:pathPattern=".*\\.EPUB" />
|
||||||
<!-- pdf -->
|
<!-- pdf -->
|
||||||
<data android:pathAdvancedPattern=".*\\.[pP][dD][fF]" />
|
<data android:pathAdvancedPattern=".*\\.[pP][dD][fF]" />
|
||||||
|
<data android:pathPattern=".*\\.pdf" />
|
||||||
|
<data android:pathPattern=".*\\.PDF" />
|
||||||
</intent-filter>
|
</intent-filter>
|
||||||
</activity>
|
</activity>
|
||||||
|
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ package io.legado.app.help
|
|||||||
import android.annotation.SuppressLint
|
import android.annotation.SuppressLint
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
import android.os.Build
|
import android.os.Build
|
||||||
|
import android.webkit.WebSettings
|
||||||
import io.legado.app.constant.AppConst
|
import io.legado.app.constant.AppConst
|
||||||
import io.legado.app.model.ReadAloud
|
import io.legado.app.model.ReadAloud
|
||||||
import io.legado.app.utils.FileUtils
|
import io.legado.app.utils.FileUtils
|
||||||
@@ -65,6 +66,7 @@ class CrashHandler(val context: Context) : Thread.UncaughtExceptionHandler {
|
|||||||
map["MODEL"] = Build.MODEL
|
map["MODEL"] = Build.MODEL
|
||||||
map["SDK_INT"] = Build.VERSION.SDK_INT.toString()
|
map["SDK_INT"] = Build.VERSION.SDK_INT.toString()
|
||||||
map["RELEASE"] = Build.VERSION.RELEASE
|
map["RELEASE"] = Build.VERSION.RELEASE
|
||||||
|
map["WebViewUserAgent"] = WebSettings.getDefaultUserAgent(appCtx)
|
||||||
//获取app版本信息
|
//获取app版本信息
|
||||||
AppConst.appInfo.let {
|
AppConst.appInfo.let {
|
||||||
map["versionName"] = it.versionName
|
map["versionName"] = it.versionName
|
||||||
|
|||||||
Reference in New Issue
Block a user