diff --git a/app/build.gradle b/app/build.gradle index a16afacd3..767a79371 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -35,9 +35,7 @@ android { testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" project.ext.set("archivesBaseName", name + "_" + version) multiDexEnabled true - ndk { - abiFilters 'arm64-v8a' - } + javaCompileOptions { annotationProcessorOptions { arguments += [ @@ -91,6 +89,9 @@ android { dimension "mode" applicationId "io.legado.cronet" manifestPlaceholders = [APP_CHANNEL_VALUE: "cronet"] + ndk { + abiFilters 'arm64-v8a' + } } } compileOptions { diff --git a/app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeRule.kt b/app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeRule.kt index b959987b3..47f60b720 100644 --- a/app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeRule.kt +++ b/app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeRule.kt @@ -431,7 +431,7 @@ class AnalyzeRule(val ruleData: RuleDataInterface) : JsExtensions { mode = Mode.Json ruleStr.substring(6) } - (ruleStr[1] == '.' || ruleStr[1] == '[') && ruleStr.startsWith("$.") || isJSON -> { + ruleStr.startsWith("$.") || isJSON -> { mode = Mode.Json ruleStr }