diff --git a/app/src/main/java/com/twofasapp/App.kt b/app/src/main/java/com/twofasapp/App.kt index 4bb52685..311adced 100644 --- a/app/src/main/java/com/twofasapp/App.kt +++ b/app/src/main/java/com/twofasapp/App.kt @@ -36,6 +36,7 @@ import com.twofasapp.start.StartModule import com.twofasapp.time.TimeModule import com.twofasapp.usecases.services.PinOptionsUseCase import io.reactivex.plugins.RxJavaPlugins +import net.sqlcipher.database.SQLiteDatabase import org.koin.android.ext.android.inject import org.koin.android.ext.koin.androidContext import org.koin.core.context.startKoin @@ -124,6 +125,11 @@ class App : MultiDexApplication() { FirebaseCrashlytics.getInstance().setCrashlyticsCollectionEnabled(sendCrashLogsPreference.get()) FileLogger.log("App start") + + try { + SQLiteDatabase.loadLibs(this) + } catch (e: Exception) { + } } override fun attachBaseContext(base: Context) { diff --git a/buildlogic/src/main/java/com/twofasapp/buildlogic/version/AppConfig.kt b/buildlogic/src/main/java/com/twofasapp/buildlogic/version/AppConfig.kt index 063ad1e0..7814a730 100644 --- a/buildlogic/src/main/java/com/twofasapp/buildlogic/version/AppConfig.kt +++ b/buildlogic/src/main/java/com/twofasapp/buildlogic/version/AppConfig.kt @@ -8,7 +8,7 @@ object AppConfig { private const val verMajor = 4 private const val verMinor = 5 private const val verPatch = 8 - private const val verInternal = 0 + private const val verInternal = 1 const val versionCode = verMajor * 1000000 + verMinor * 10000 + verPatch * 100 + verInternal const val versionName = "${verMajor}.${verMinor}.${verPatch}" diff --git a/persistence/src/main/java/com/twofasapp/persistence/PersistenceModule.kt b/persistence/src/main/java/com/twofasapp/persistence/PersistenceModule.kt index 36d846ea..87e0fc10 100644 --- a/persistence/src/main/java/com/twofasapp/persistence/PersistenceModule.kt +++ b/persistence/src/main/java/com/twofasapp/persistence/PersistenceModule.kt @@ -1,7 +1,6 @@ package com.twofasapp.persistence import androidx.room.Room -import com.getkeepsafe.relinker.ReLinker import com.twofasapp.common.environment.AppBuild import com.twofasapp.di.KoinModule import com.twofasapp.persistence.cipher.DatabaseKeyGenerator @@ -37,12 +36,6 @@ class PersistenceModule : KoinModule { MIGRATION_10_11, ) - SQLiteDatabase.loadLibs(context) { libraries: Array -> - libraries.forEach { library -> - ReLinker.loadLibrary(context, library) - } - } - if (get().isDebuggable.not()) { val factory = SupportFactory(SQLiteDatabase.getBytes(get().execute().toCharArray())) builder.openHelperFactory(factory)