mirror of
https://github.com/bitwarden/android.git
synced 2026-05-10 16:45:43 -05:00
Update Androidx libraries (#5070)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
package com.x8bit.bitwarden.data.vault.datasource.disk.callback
|
||||
|
||||
import androidx.room.RoomDatabase
|
||||
import androidx.sqlite.db.SupportSQLiteDatabase
|
||||
import androidx.sqlite.SQLiteConnection
|
||||
import com.x8bit.bitwarden.data.platform.manager.DatabaseSchemeManager
|
||||
|
||||
/**
|
||||
@@ -10,7 +10,8 @@ import com.x8bit.bitwarden.data.platform.manager.DatabaseSchemeManager
|
||||
class DatabaseSchemeCallback(
|
||||
private val databaseSchemeManager: DatabaseSchemeManager,
|
||||
) : RoomDatabase.Callback() {
|
||||
override fun onDestructiveMigration(db: SupportSQLiteDatabase) {
|
||||
override fun onDestructiveMigration(connection: SQLiteConnection) {
|
||||
super.onDestructiveMigration(connection)
|
||||
databaseSchemeManager.clearSyncState()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package com.x8bit.bitwarden.data.vault.datasource.disk.callback
|
||||
|
||||
import androidx.sqlite.SQLiteConnection
|
||||
import com.x8bit.bitwarden.data.platform.manager.DatabaseSchemeManager
|
||||
import io.mockk.every
|
||||
import io.mockk.just
|
||||
@@ -17,7 +18,7 @@ class DatabaseSchemeCallbackTest {
|
||||
|
||||
@Test
|
||||
fun `onDestructiveMigration calls clearSyncState`() {
|
||||
callback.onDestructiveMigration(mockk())
|
||||
callback.onDestructiveMigration(mockk<SQLiteConnection>())
|
||||
verify(exactly = 1) { databaseSchemeManager.clearSyncState() }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,6 +3,8 @@ android.nonTransitiveRClass=true
|
||||
android.useAndroidX=true
|
||||
|
||||
kotlin.code.style=official
|
||||
kotlin.compilerArgs=-Xjspecify-annotations=strict, -Xtype-enhancement-improvements-strict-mode
|
||||
|
||||
org.gradle.caching=true
|
||||
org.gradle.jvmargs=-Xmx4g -XX:+UseParallelGC -Dfile.encoding=UTF-8
|
||||
org.gradle.parallel=true
|
||||
|
||||
@@ -13,15 +13,13 @@ androidxActivity = "1.10.1"
|
||||
androidXBiometrics = "1.2.0-alpha05"
|
||||
androidxBrowser = "1.8.0"
|
||||
androidxCamera = "1.4.2"
|
||||
androidxComposeBom = "2025.03.01"
|
||||
androidxCore = "1.15.0"
|
||||
# Versions >= 1.5.0-alpha05 introduce breaking changes and bugs that are not suitable for
|
||||
# production. Do not update until https://issuetracker.google.com/issues/355141766 is resolved.
|
||||
androidxComposeBom = "2025.04.00"
|
||||
androidxCore = "1.16.0"
|
||||
androidxCredentials = "1.5.0"
|
||||
androidxHiltNavigationCompose = "1.2.0"
|
||||
androidxLifecycle = "2.8.7"
|
||||
androidxNavigation = "2.8.0"
|
||||
androidxRoom = "2.6.1"
|
||||
androidxRoom = "2.7.0"
|
||||
androidXSecurityCrypto = "1.1.0-alpha06"
|
||||
androidxSplash = "1.1.0-rc01"
|
||||
androidXAppCompat = "1.7.0"
|
||||
|
||||
Reference in New Issue
Block a user