mirror of
https://github.com/bitwarden/android.git
synced 2026-03-24 23:32:29 -05:00
[PM-23278] Upgrade user KDF settings to minimums (#5955)
Co-authored-by: David Perez <david@livefront.com>
This commit is contained in:
@@ -32,6 +32,7 @@ sealed class FlagKey<out T : Any> {
|
||||
listOf(
|
||||
CredentialExchangeProtocolImport,
|
||||
CredentialExchangeProtocolExport,
|
||||
ForceUpdateKdfSettings,
|
||||
CipherKeyEncryption,
|
||||
)
|
||||
}
|
||||
@@ -71,6 +72,14 @@ sealed class FlagKey<out T : Any> {
|
||||
override val defaultValue: Boolean = false
|
||||
}
|
||||
|
||||
/**
|
||||
* Data object holding the feature flag key for the Force Update KDF Settings feature.
|
||||
*/
|
||||
data object ForceUpdateKdfSettings : FlagKey<Boolean>() {
|
||||
override val keyName: String = "pm-18021-force-update-kdf-settings"
|
||||
override val defaultValue: Boolean = false
|
||||
}
|
||||
|
||||
//region Dummy keys for testing
|
||||
/**
|
||||
* Data object holding the key for a [Boolean] flag to be used in tests.
|
||||
|
||||
@@ -24,6 +24,10 @@ class FlagKeyTest {
|
||||
FlagKey.BitwardenAuthenticationEnabled.keyName,
|
||||
"bitwarden-authentication-enabled",
|
||||
)
|
||||
assertEquals(
|
||||
FlagKey.ForceUpdateKdfSettings.keyName,
|
||||
"pm-18021-force-update-kdf-settings",
|
||||
)
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -34,6 +38,7 @@ class FlagKeyTest {
|
||||
FlagKey.CredentialExchangeProtocolExport,
|
||||
FlagKey.CipherKeyEncryption,
|
||||
FlagKey.BitwardenAuthenticationEnabled,
|
||||
FlagKey.ForceUpdateKdfSettings,
|
||||
).all {
|
||||
!it.defaultValue
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user