Update gradle

This commit is contained in:
FongMi 2023-02-08 16:39:54 +08:00
parent f58fa7b9f8
commit 47b90b68e9
2 changed files with 3 additions and 4 deletions

View File

@ -34,11 +34,11 @@ android {
dependencies { dependencies {
//Debug For HTTP/3 //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 'com.google.net.cronet:cronet-okhttp:0.1.0'
implementation 'androidx.annotation:annotation:1.5.0' implementation 'androidx.annotation:annotation:1.5.0'
implementation 'com.squareup.okhttp3:okhttp:3.12.13' 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 'cn.wanghaomiao:JsoupXpath:2.5.1'
implementation 'com.google.zxing:core:3.3.0' implementation 'com.google.zxing:core:3.3.0'
implementation 'org.jsoup:jsoup:1.15.3' implementation 'org.jsoup:jsoup:1.15.3'

View File

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