mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-08-03 02:36:24 -04:00
Remove JCenter and update kiwixlib
This commit is contained in:
parent
f719601867
commit
5ad4e6167a
@ -2,7 +2,6 @@ buildscript {
|
||||
repositories {
|
||||
google()
|
||||
mavenCentral()
|
||||
jcenter()
|
||||
maven { setUrl("https://jitpack.io") }
|
||||
}
|
||||
dependencies {
|
||||
@ -22,7 +21,6 @@ allprojects {
|
||||
repositories {
|
||||
google()
|
||||
mavenCentral()
|
||||
jcenter()
|
||||
maven { setUrl("https://jitpack.io") }
|
||||
}
|
||||
}
|
||||
|
@ -4,7 +4,6 @@ plugins {
|
||||
repositories {
|
||||
mavenCentral()
|
||||
google()
|
||||
jcenter()
|
||||
maven {
|
||||
setUrl("https://plugins.gradle.org/m2/")
|
||||
}
|
||||
|
@ -378,7 +378,7 @@ object Libs {
|
||||
/**
|
||||
* https://github.com/kiwix/kiwix-lib
|
||||
*/
|
||||
const val kiwixlib: String = "org.kiwix.kiwixlib:kiwixlib:" + Versions.kiwixlib
|
||||
const val kiwixlib: String = "com.github.kiwix:java-libkiwix:" + Versions.kiwixlib
|
||||
|
||||
/**
|
||||
* https://github.com/material-components/material-components-android
|
||||
|
@ -72,7 +72,7 @@ object Versions {
|
||||
|
||||
const val lint_gradle: String = "27.1.1"
|
||||
|
||||
const val testing_ktx: String = "1.1.2"
|
||||
const val testing_ktx: String = "1.2.0"
|
||||
|
||||
const val threetenabp: String = "1.3.0"
|
||||
|
||||
@ -88,7 +88,7 @@ object Versions {
|
||||
|
||||
const val core_ktx: String = "1.3.2"
|
||||
|
||||
const val kiwixlib: String = "9.4.1"
|
||||
const val kiwixlib: String = "9.4.1-SNAPSHOT"
|
||||
|
||||
const val material: String = "1.2.1"
|
||||
|
||||
|
@ -105,8 +105,6 @@ class AllProjectConfigurer {
|
||||
"LabelFor",
|
||||
"LogConditional",
|
||||
"ConvertToWebp",
|
||||
//TODO remove this when we remove jcenter from gradle
|
||||
"JcenterRepositoryObsolete",
|
||||
"UnknownNullness",
|
||||
"SelectableText",
|
||||
"MissingTranslation",
|
||||
|
@ -4,7 +4,6 @@ buildscript {
|
||||
repositories {
|
||||
google()
|
||||
mavenCentral()
|
||||
jcenter()
|
||||
maven { setUrl("https://jitpack.io") }
|
||||
}
|
||||
|
||||
@ -64,7 +63,7 @@ dependencies {
|
||||
if (!shouldUseLocalVersion()) {
|
||||
api(Libs.kiwixlib)
|
||||
} else {
|
||||
implementation("com.getkeepsafe.relinker:relinker:1.3.1")
|
||||
implementation("com.getkeepsafe.relinker:relinker:1.4.5")
|
||||
api(fileTree(mapOf("include" to "*.aar", "dir" to "libs")))
|
||||
}
|
||||
|
||||
|
@ -24,11 +24,11 @@ import android.util.Log
|
||||
import androidx.core.net.toUri
|
||||
import io.reactivex.Completable
|
||||
import io.reactivex.schedulers.Schedulers
|
||||
import org.kiwix.kiwixlib.DirectAccessInfo
|
||||
import org.kiwix.kiwixlib.JNIKiwixException
|
||||
import org.kiwix.kiwixlib.JNIKiwixInt
|
||||
import org.kiwix.kiwixlib.JNIKiwixReader
|
||||
import org.kiwix.kiwixlib.JNIKiwixString
|
||||
import org.kiwix.kiwixlib.Pair
|
||||
import org.kiwix.kiwixmobile.core.CoreApp
|
||||
import org.kiwix.kiwixmobile.core.NightModeConfig
|
||||
import org.kiwix.kiwixmobile.core.entity.LibraryNetworkEntity.Book
|
||||
@ -272,5 +272,5 @@ private val String.filePath: String
|
||||
val String.truncateMimeType: String
|
||||
get() = replace("^([^ ]+).*$", "$1").substringBefore(";")
|
||||
|
||||
private val Pair.parcelFileDescriptor: ParcelFileDescriptor?
|
||||
private val DirectAccessInfo.parcelFileDescriptor: ParcelFileDescriptor?
|
||||
get() = ParcelFileDescriptor.open(File(filename), ParcelFileDescriptor.MODE_READ_ONLY)
|
||||
|
Loading…
x
Reference in New Issue
Block a user