Upgraded the com.googlecode.json-simple to version 1.1.1. * Upgraded the com.squareup.okhttp3:okhttp to version 4.12.0. * Fixed remaining deprecated object.

This commit is contained in:
MohitMaliFtechiz 2025-03-26 21:48:13 +05:30
parent 54811ed897
commit b1fa6ac998
3 changed files with 5 additions and 4 deletions

View File

@ -23,8 +23,8 @@ dependencies {
exclude(group = "com.google.guava", module = "guava")
}
implementation("io.gitlab.arturbosch.detekt:detekt-gradle-plugin:1.23.8")
implementation("com.googlecode.json-simple:json-simple:1.1")
implementation("com.squareup.okhttp3:okhttp:4.10.0")
implementation("com.googlecode.json-simple:json-simple:1.1.1")
implementation("com.squareup.okhttp3:okhttp:4.12.0")
implementation(gradleApi())
implementation(localGroovy())

View File

@ -17,13 +17,15 @@
*/
package org.kiwix.kiwixmobile.core.utils
import org.kiwix.kiwixmobile.core.compat.CompatHelper.Companion.convertToLocal
import java.util.Locale
/**
* Created by mhutti1 on 19/04/17.
*/
class BookUtils {
val localeMap = Locale.getISOLanguages().map(::Locale).associateBy { it.isO3Language }
val localeMap =
Locale.getISOLanguages().map { it.convertToLocal() }.associateBy { it.isO3Language }
// Get the language from the language codes of the parsed xml stream
@Suppress("MagicNumber")

View File

@ -55,7 +55,6 @@ import java.io.File
import java.io.FileInputStream
import java.io.FileNotFoundException
import java.io.IOException
import androidx.core.net.toUri
object FileUtils {
private val fileOperationMutex = Mutex()