Update gradle

pull/69/head
FongMi 3 years ago
parent f58fa7b9f8
commit 47b90b68e9
  1. 4
      app/build.gradle
  2. 3
      app/src/main/java/com/github/catvod/bean/Result.java

@ -34,11 +34,11 @@ android {
dependencies {
//Debug For HTTP/3
//implementation 'org.chromium.net:cronet-embedded:101.4951.41'
debugImplementation 'org.chromium.net:cronet-embedded:101.4951.41'
implementation 'com.google.net.cronet:cronet-okhttp:0.1.0'
implementation 'androidx.annotation:annotation:1.5.0'
implementation 'com.squareup.okhttp3:okhttp:3.12.13'
implementation 'com.google.code.gson:gson:2.8.6'
implementation 'com.google.code.gson:gson:2.10.1'
implementation 'cn.wanghaomiao:JsoupXpath:2.5.1'
implementation 'com.google.zxing:core:3.3.0'
implementation 'org.jsoup:jsoup:1.15.3'

@ -97,8 +97,7 @@ public class Result {
public Result filters(JSONObject object) {
if (object == null) return this;
Type listType = new TypeToken<LinkedHashMap<String, List<Filter>>>() {
}.getType();
Type listType = new TypeToken<LinkedHashMap<String, List<Filter>>>() {}.getType();
LinkedHashMap<String, List<Filter>> filters = new Gson().fromJson(object.toString(), listType);
for (Map.Entry<String, List<Filter>> entry : filters.entrySet()) for (Filter filter : entry.getValue()) filter.trans();
this.filters = filters;

Loading…
Cancel
Save