mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-08 23:07:26 -04:00
Fix missing architecture in object box
This commit is contained in:
parent
37c4e2ec66
commit
3a14a74090
@ -420,4 +420,10 @@ object Libs {
|
||||
* https://developer.android.com/testing
|
||||
*/
|
||||
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,6 +12,8 @@ import org.gradle.plugin.use.PluginDependencySpec
|
||||
*/
|
||||
object Versions {
|
||||
|
||||
const val google_android_play_core: String = "1.7.3"
|
||||
|
||||
const val document_file_version: String = "1.0.1"
|
||||
|
||||
const val org_jetbrains_kotlinx_kotlinx_coroutines: String = "1.4.1"
|
||||
|
@ -204,6 +204,7 @@ class AllProjectConfigurer {
|
||||
implementation(Libs.rxandroid)
|
||||
implementation(Libs.rxjava)
|
||||
implementation(Libs.preference_ktx)
|
||||
implementation(Libs.google_android_play_core)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -17,6 +17,7 @@
|
||||
*/
|
||||
package org.kiwix.kiwixmobile.core
|
||||
|
||||
import android.app.AlertDialog
|
||||
import android.app.Application
|
||||
import android.content.Context
|
||||
import android.os.Build
|
||||
@ -25,6 +26,7 @@ import android.os.Environment.getExternalStorageState
|
||||
import android.os.StrictMode
|
||||
import android.os.StrictMode.VmPolicy
|
||||
import androidx.multidex.MultiDex
|
||||
import com.google.android.play.core.missingsplits.MissingSplitsManagerFactory
|
||||
import com.jakewharton.threetenabp.AndroidThreeTen
|
||||
import org.kiwix.kiwixmobile.core.data.local.KiwixDatabase
|
||||
import org.kiwix.kiwixmobile.core.di.components.CoreComponent
|
||||
@ -76,6 +78,15 @@ abstract class CoreApp : Application() {
|
||||
}
|
||||
|
||||
override fun onCreate() {
|
||||
if (MissingSplitsManagerFactory.create(this).disableAppIfMissingRequiredSplits()) {
|
||||
AlertDialog.Builder(this)
|
||||
.setMessage(org.kiwix.kiwixmobile.core.R.string.missing_split_version_for_objectbox)
|
||||
.setPositiveButton(R.string.yes) { dialog, which ->
|
||||
android.os.Process.killProcess(android.os.Process.myPid())
|
||||
}
|
||||
.show()
|
||||
return
|
||||
}
|
||||
super.onCreate()
|
||||
instance = this
|
||||
coreComponent = DaggerCoreComponent.builder()
|
||||
|
@ -321,4 +321,5 @@
|
||||
<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_selected_notes">Delete Selected Notes?</string>
|
||||
<string name="missing_split_version_for_objectbox">Un-Supported architecture unable to open please install this app from PlayStore</string>
|
||||
</resources>
|
||||
|
Loading…
x
Reference in New Issue
Block a user