mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-10 07:48:30 -04:00
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:
parent
54811ed897
commit
b1fa6ac998
@ -23,8 +23,8 @@ dependencies {
|
|||||||
exclude(group = "com.google.guava", module = "guava")
|
exclude(group = "com.google.guava", module = "guava")
|
||||||
}
|
}
|
||||||
implementation("io.gitlab.arturbosch.detekt:detekt-gradle-plugin:1.23.8")
|
implementation("io.gitlab.arturbosch.detekt:detekt-gradle-plugin:1.23.8")
|
||||||
implementation("com.googlecode.json-simple:json-simple:1.1")
|
implementation("com.googlecode.json-simple:json-simple:1.1.1")
|
||||||
implementation("com.squareup.okhttp3:okhttp:4.10.0")
|
implementation("com.squareup.okhttp3:okhttp:4.12.0")
|
||||||
|
|
||||||
implementation(gradleApi())
|
implementation(gradleApi())
|
||||||
implementation(localGroovy())
|
implementation(localGroovy())
|
||||||
|
@ -17,13 +17,15 @@
|
|||||||
*/
|
*/
|
||||||
package org.kiwix.kiwixmobile.core.utils
|
package org.kiwix.kiwixmobile.core.utils
|
||||||
|
|
||||||
|
import org.kiwix.kiwixmobile.core.compat.CompatHelper.Companion.convertToLocal
|
||||||
import java.util.Locale
|
import java.util.Locale
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Created by mhutti1 on 19/04/17.
|
* Created by mhutti1 on 19/04/17.
|
||||||
*/
|
*/
|
||||||
class BookUtils {
|
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
|
// Get the language from the language codes of the parsed xml stream
|
||||||
@Suppress("MagicNumber")
|
@Suppress("MagicNumber")
|
||||||
|
@ -55,7 +55,6 @@ import java.io.File
|
|||||||
import java.io.FileInputStream
|
import java.io.FileInputStream
|
||||||
import java.io.FileNotFoundException
|
import java.io.FileNotFoundException
|
||||||
import java.io.IOException
|
import java.io.IOException
|
||||||
import androidx.core.net.toUri
|
|
||||||
|
|
||||||
object FileUtils {
|
object FileUtils {
|
||||||
private val fileOperationMutex = Mutex()
|
private val fileOperationMutex = Mutex()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user