mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-09 15:27:55 -04:00
Remove Play Core Services
This commit is contained in:
parent
42474c8bff
commit
c9ccfe7cca
@ -420,10 +420,4 @@ object Libs {
|
|||||||
* https://developer.android.com/testing
|
* https://developer.android.com/testing
|
||||||
*/
|
*/
|
||||||
const val junit: String = "androidx.test.ext:junit:" + Versions.junit
|
const val junit: String = "androidx.test.ext:junit:" + Versions.junit
|
||||||
|
|
||||||
/**
|
|
||||||
* https://developer.android.com/reference/com/google/android/play/core/release-notes
|
|
||||||
*/
|
|
||||||
const val google_android_play_core: String =
|
|
||||||
"com.google.android.play:core:" + Versions.google_android_play_core
|
|
||||||
}
|
}
|
||||||
|
@ -12,8 +12,6 @@ import org.gradle.plugin.use.PluginDependencySpec
|
|||||||
*/
|
*/
|
||||||
object Versions {
|
object Versions {
|
||||||
|
|
||||||
const val google_android_play_core: String = "1.7.3"
|
|
||||||
|
|
||||||
const val document_file_version: String = "1.0.1"
|
const val document_file_version: String = "1.0.1"
|
||||||
|
|
||||||
const val org_jetbrains_kotlinx_kotlinx_coroutines: String = "1.4.1"
|
const val org_jetbrains_kotlinx_kotlinx_coroutines: String = "1.4.1"
|
||||||
|
@ -204,7 +204,6 @@ class AllProjectConfigurer {
|
|||||||
implementation(Libs.rxandroid)
|
implementation(Libs.rxandroid)
|
||||||
implementation(Libs.rxjava)
|
implementation(Libs.rxjava)
|
||||||
implementation(Libs.preference_ktx)
|
implementation(Libs.preference_ktx)
|
||||||
implementation(Libs.google_android_play_core)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -17,7 +17,6 @@
|
|||||||
*/
|
*/
|
||||||
package org.kiwix.kiwixmobile.core
|
package org.kiwix.kiwixmobile.core
|
||||||
|
|
||||||
import android.app.AlertDialog
|
|
||||||
import android.app.Application
|
import android.app.Application
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
import android.os.Build
|
import android.os.Build
|
||||||
@ -26,7 +25,6 @@ import android.os.Environment.getExternalStorageState
|
|||||||
import android.os.StrictMode
|
import android.os.StrictMode
|
||||||
import android.os.StrictMode.VmPolicy
|
import android.os.StrictMode.VmPolicy
|
||||||
import androidx.multidex.MultiDex
|
import androidx.multidex.MultiDex
|
||||||
import com.google.android.play.core.missingsplits.MissingSplitsManagerFactory
|
|
||||||
import com.jakewharton.threetenabp.AndroidThreeTen
|
import com.jakewharton.threetenabp.AndroidThreeTen
|
||||||
import org.kiwix.kiwixmobile.core.data.local.KiwixDatabase
|
import org.kiwix.kiwixmobile.core.data.local.KiwixDatabase
|
||||||
import org.kiwix.kiwixmobile.core.di.components.CoreComponent
|
import org.kiwix.kiwixmobile.core.di.components.CoreComponent
|
||||||
@ -78,15 +76,6 @@ abstract class CoreApp : Application() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
override fun onCreate() {
|
override fun onCreate() {
|
||||||
if (MissingSplitsManagerFactory.create(this).disableAppIfMissingRequiredSplits()) {
|
|
||||||
AlertDialog.Builder(this)
|
|
||||||
.setMessage(R.string.missing_split_version_for_objectbox)
|
|
||||||
.setPositiveButton(R.string.yes) { _, _ ->
|
|
||||||
android.os.Process.killProcess(android.os.Process.myPid())
|
|
||||||
}
|
|
||||||
.show()
|
|
||||||
return
|
|
||||||
}
|
|
||||||
super.onCreate()
|
super.onCreate()
|
||||||
instance = this
|
instance = this
|
||||||
coreComponent = DaggerCoreComponent.builder()
|
coreComponent = DaggerCoreComponent.builder()
|
||||||
|
@ -315,5 +315,4 @@
|
|||||||
<string name="open_article">Ouvrir l’article</string>
|
<string name="open_article">Ouvrir l’article</string>
|
||||||
<string name="delete_note_dialog_message">Remarque : les notes ne sont pas supprimées de votre espace de stockage</string>
|
<string name="delete_note_dialog_message">Remarque : les notes ne sont pas supprimées de votre espace de stockage</string>
|
||||||
<string name="delete_selected_notes">Supprimer les notes sélectionnées ?</string>
|
<string name="delete_selected_notes">Supprimer les notes sélectionnées ?</string>
|
||||||
<string name="missing_split_version_for_objectbox">Architecture non prise en charge, votre appareil n’est pas compatible avec cette application.</string>
|
|
||||||
</resources>
|
</resources>
|
||||||
|
@ -299,5 +299,4 @@
|
|||||||
<string name="open_article">Отвори статија</string>
|
<string name="open_article">Отвори статија</string>
|
||||||
<string name="delete_note_dialog_message">Напомена: Белешките не се избришани од вашиот склад</string>
|
<string name="delete_note_dialog_message">Напомена: Белешките не се избришани од вашиот склад</string>
|
||||||
<string name="delete_selected_notes">Да ги избришам избраните белешки?</string>
|
<string name="delete_selected_notes">Да ги избришам избраните белешки?</string>
|
||||||
<string name="missing_split_version_for_objectbox">Неподдржана архитектура. Вашито уред не е складен со прилогов</string>
|
|
||||||
</resources>
|
</resources>
|
||||||
|
@ -302,5 +302,4 @@
|
|||||||
<string name="open_article">Otvoriť článok</string>
|
<string name="open_article">Otvoriť článok</string>
|
||||||
<string name="delete_note_dialog_message">Poznámka: Poznámky z vášho úložiska nie sú vymazané</string>
|
<string name="delete_note_dialog_message">Poznámka: Poznámky z vášho úložiska nie sú vymazané</string>
|
||||||
<string name="delete_selected_notes">Odstrániť vybraté poznámky?</string>
|
<string name="delete_selected_notes">Odstrániť vybraté poznámky?</string>
|
||||||
<string name="missing_split_version_for_objectbox">Nepodporovaná architektúra, vaše zariadenie nie je kompatibilné s touto aplikáciou</string>
|
|
||||||
</resources>
|
</resources>
|
||||||
|
@ -323,5 +323,4 @@
|
|||||||
<string name="open_article">Open Article</string>
|
<string name="open_article">Open Article</string>
|
||||||
<string name="delete_note_dialog_message">Note: Notes are not deleted from your storage</string>
|
<string name="delete_note_dialog_message">Note: Notes are not deleted from your storage</string>
|
||||||
<string name="delete_selected_notes">Delete Selected Notes?</string>
|
<string name="delete_selected_notes">Delete Selected Notes?</string>
|
||||||
<string name="missing_split_version_for_objectbox">Un-Supported architecture, your device isn\'t compatible with this app</string>
|
|
||||||
</resources>
|
</resources>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user