diff --git a/build.gradle b/build.gradle index 873728db7..35cffc2bc 100644 --- a/build.gradle +++ b/build.gradle @@ -19,7 +19,7 @@ compileKotlin { kotlinOptions { jvmTarget = '1.8' freeCompilerArgs += [ - '-Xopt-in=kotlin.contracts.ExperimentalContracts', + '-opt-in=kotlin.contracts.ExperimentalContracts', ] } } @@ -28,7 +28,7 @@ compileTestKotlin { kotlinOptions { jvmTarget = '1.8' freeCompilerArgs += [ - '-Xopt-in=kotlinx.coroutines.ExperimentalCoroutinesApi', + '-opt-in=kotlinx.coroutines.ExperimentalCoroutinesApi', ] } } @@ -38,7 +38,7 @@ dependencies { implementation 'com.squareup.okhttp3:okhttp:4.9.3' implementation 'com.squareup.okio:okio:3.0.0' implementation 'org.jsoup:jsoup:1.14.3' - implementation 'org.json:json:20211205' + implementation 'org.json:json:20220320' implementation 'androidx.collection:collection-ktx:1.2.0' testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.2' diff --git a/src/main/kotlin/org/koitharu/kotatsu/parsers/util/json/JSONIterator.kt b/src/main/kotlin/org/koitharu/kotatsu/parsers/util/json/JSONIterator.kt index 9b48640e2..66c05e2ee 100644 --- a/src/main/kotlin/org/koitharu/kotatsu/parsers/util/json/JSONIterator.kt +++ b/src/main/kotlin/org/koitharu/kotatsu/parsers/util/json/JSONIterator.kt @@ -1,4 +1,4 @@ -package org.koitharu.kotatsu.utils.json +package org.koitharu.kotatsu.parsers.util.json import org.json.JSONArray import org.json.JSONObject diff --git a/src/main/kotlin/org/koitharu/kotatsu/parsers/util/json/JSONStringIterator.kt b/src/main/kotlin/org/koitharu/kotatsu/parsers/util/json/JSONStringIterator.kt index dd9826407..5a04afd10 100644 --- a/src/main/kotlin/org/koitharu/kotatsu/parsers/util/json/JSONStringIterator.kt +++ b/src/main/kotlin/org/koitharu/kotatsu/parsers/util/json/JSONStringIterator.kt @@ -1,4 +1,4 @@ -package org.koitharu.kotatsu.utils.json +package org.koitharu.kotatsu.parsers.util.json import org.json.JSONArray diff --git a/src/main/kotlin/org/koitharu/kotatsu/parsers/util/json/JsonValuesIterator.kt b/src/main/kotlin/org/koitharu/kotatsu/parsers/util/json/JSONValuesIterator.kt similarity index 85% rename from src/main/kotlin/org/koitharu/kotatsu/parsers/util/json/JsonValuesIterator.kt rename to src/main/kotlin/org/koitharu/kotatsu/parsers/util/json/JSONValuesIterator.kt index 6af63419f..b43943f36 100644 --- a/src/main/kotlin/org/koitharu/kotatsu/parsers/util/json/JsonValuesIterator.kt +++ b/src/main/kotlin/org/koitharu/kotatsu/parsers/util/json/JSONValuesIterator.kt @@ -1,4 +1,4 @@ -package org.koitharu.kotatsu.utils.json +package org.koitharu.kotatsu.parsers.util.json import org.json.JSONObject diff --git a/src/main/kotlin/org/koitharu/kotatsu/parsers/util/json/JsonExt.kt b/src/main/kotlin/org/koitharu/kotatsu/parsers/util/json/JsonExt.kt index 4e27a3369..3fccf101b 100644 --- a/src/main/kotlin/org/koitharu/kotatsu/parsers/util/json/JsonExt.kt +++ b/src/main/kotlin/org/koitharu/kotatsu/parsers/util/json/JsonExt.kt @@ -3,9 +3,6 @@ package org.koitharu.kotatsu.parsers.util.json import androidx.collection.ArraySet import org.json.JSONArray import org.json.JSONObject -import org.koitharu.kotatsu.utils.json.JSONIterator -import org.koitharu.kotatsu.utils.json.JSONStringIterator -import org.koitharu.kotatsu.utils.json.JSONValuesIterator import java.util.* import kotlin.contracts.contract