pull/1145/head
gedoor 3 years ago
parent bfb9afbe6c
commit 95d7b3c441
  1. 7
      app/build.gradle
  2. 2
      app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeRule.kt

@ -35,9 +35,7 @@ android {
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
project.ext.set("archivesBaseName", name + "_" + version) project.ext.set("archivesBaseName", name + "_" + version)
multiDexEnabled true multiDexEnabled true
ndk {
abiFilters 'arm64-v8a'
}
javaCompileOptions { javaCompileOptions {
annotationProcessorOptions { annotationProcessorOptions {
arguments += [ arguments += [
@ -91,6 +89,9 @@ android {
dimension "mode" dimension "mode"
applicationId "io.legado.cronet" applicationId "io.legado.cronet"
manifestPlaceholders = [APP_CHANNEL_VALUE: "cronet"] manifestPlaceholders = [APP_CHANNEL_VALUE: "cronet"]
ndk {
abiFilters 'arm64-v8a'
}
} }
} }
compileOptions { compileOptions {

@ -431,7 +431,7 @@ class AnalyzeRule(val ruleData: RuleDataInterface) : JsExtensions {
mode = Mode.Json mode = Mode.Json
ruleStr.substring(6) ruleStr.substring(6)
} }
(ruleStr[1] == '.' || ruleStr[1] == '[') && ruleStr.startsWith("$.") || isJSON -> { ruleStr.startsWith("$.") || isJSON -> {
mode = Mode.Json mode = Mode.Json
ruleStr ruleStr
} }

Loading…
Cancel
Save