diff --git a/app/build.gradle b/app/build.gradle index 97efb735b..328471180 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -82,7 +82,7 @@ dependencies { implementation 'androidx.core:core-ktx:1.2.0-alpha02' implementation 'androidx.appcompat:appcompat:1.1.0-beta01' implementation 'androidx.preference:preference:1.1.0-beta01' - implementation 'androidx.constraintlayout:constraintlayout:2.0.0-beta1' + implementation 'androidx.constraintlayout:constraintlayout:2.0.0-beta2' implementation 'com.google.android.material:material:1.1.0-alpha07' implementation 'com.google.android:flexbox:1.1.0' @@ -92,7 +92,7 @@ dependencies { kapt "androidx.lifecycle:lifecycle-compiler:$lifecycle_version" //room - def room_version = '2.0.0' + def room_version = '2.1.0' implementation "androidx.room:room-runtime:$room_version" kapt "androidx.room:room-compiler:$room_version" @@ -118,8 +118,7 @@ dependencies { implementation 'cn.wanghaomiao:JsoupXpath:2.3.2' // implementation 'org.apache.commons:commons-text:1.6' // Default json parser for jsonpath - implementation 'net.minidev:json-smart:2.3' - // implementation 'com.jayway.jsonpath:json-path:2.4.0' + implementation 'com.jayway.jsonpath:json-path:2.4.0' //JS implementation 'com.github.gedoor:rhino-android:1.3' diff --git a/app/src/main/java/com/jayway/jsonpath/Configuration.java b/app/src/main/java/com/jayway/jsonpath/Configuration.java deleted file mode 100644 index dd59fd708..000000000 --- a/app/src/main/java/com/jayway/jsonpath/Configuration.java +++ /dev/null @@ -1,257 +0,0 @@ -/* - * Copyright 2011 the original author or authors. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.jayway.jsonpath; - -import com.jayway.jsonpath.internal.DefaultsImpl; -import com.jayway.jsonpath.spi.json.JsonProvider; -import com.jayway.jsonpath.spi.mapper.MappingProvider; - -import java.util.*; - -import static com.jayway.jsonpath.internal.Utils.notNull; -import static java.util.Arrays.asList; - -/** - * Immutable configuration object - */ -public class Configuration { - - private static Defaults DEFAULTS = null; - - /** - * Set Default configuration - * @param defaults default configuration settings - */ - public static synchronized void setDefaults(Defaults defaults){ - DEFAULTS = defaults; - } - - private static Defaults getEffectiveDefaults(){ - if (DEFAULTS == null) { - return DefaultsImpl.INSTANCE; - } else { - return DEFAULTS; - } - } - - private final JsonProvider jsonProvider; - private final MappingProvider mappingProvider; - private final Set