mirror of
https://github.com/gedoor/legado.git
synced 2024-07-06 23:47:49 +08:00
优化
This commit is contained in:
parent
74ddc6475c
commit
89e30b10bb
2
app/proguard-rules.pro
vendored
2
app/proguard-rules.pro
vendored
@ -145,6 +145,8 @@
|
||||
public static int e(...);
|
||||
}
|
||||
|
||||
# 保持js引擎调用的java类
|
||||
-keep class * extends io.legado.app.help.JsExtensions{*;}
|
||||
# 保持js引擎调用的java类
|
||||
-keep class **.analyzeRule.**{*;}
|
||||
# 保持web类
|
||||
|
@ -1,8 +1,10 @@
|
||||
package io.legado.app.utils
|
||||
|
||||
import androidx.annotation.Keep
|
||||
import java.net.URL
|
||||
import java.net.URLDecoder
|
||||
|
||||
@Keep
|
||||
@Suppress("MemberVisibilityCanBePrivate")
|
||||
class JsURL(url: String, baseUrl: String? = null) {
|
||||
|
||||
@ -26,7 +28,7 @@ class JsURL(url: String, baseUrl: String? = null) {
|
||||
}
|
||||
pathname = mUrl.path
|
||||
val query = mUrl.query
|
||||
searchParams = query?.let { query ->
|
||||
searchParams = query?.let { _ ->
|
||||
val map = hashMapOf<String, String>()
|
||||
query.split("&").forEach {
|
||||
val x = it.split("=")
|
||||
|
Loading…
Reference in New Issue
Block a user