This commit is contained in:
kunfei 2023-07-29 13:19:15 +08:00
parent 74ddc6475c
commit 89e30b10bb
2 changed files with 5 additions and 1 deletions

View File

@ -145,6 +145,8 @@
public static int e(...);
}
# 保持js引擎调用的java类
-keep class * extends io.legado.app.help.JsExtensions{*;}
# 保持js引擎调用的java类
-keep class **.analyzeRule.**{*;}
# 保持web类

View File

@ -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("=")