mirror of
https://github.com/bitwarden/android.git
synced 2026-03-09 03:33:36 -05:00
Add the Archive items feature flag (#6337)
This commit is contained in:
@@ -36,6 +36,7 @@ sealed class FlagKey<out T : Any> {
|
||||
CipherKeyEncryption,
|
||||
NoLogoutOnKdfChange,
|
||||
MigrateMyVaultToMyItems,
|
||||
ArchiveItems,
|
||||
)
|
||||
}
|
||||
}
|
||||
@@ -98,6 +99,14 @@ sealed class FlagKey<out T : Any> {
|
||||
override val defaultValue: Boolean = false
|
||||
}
|
||||
|
||||
/**
|
||||
* Data object holding the feature flag key for the Archive Items feature.
|
||||
*/
|
||||
data object ArchiveItems : FlagKey<Boolean>() {
|
||||
override val keyName: String = "pm-19148-innovation-archive"
|
||||
override val defaultValue: Boolean = false
|
||||
}
|
||||
|
||||
//region Dummy keys for testing
|
||||
/**
|
||||
* Data object holding the key for a [Boolean] flag to be used in tests.
|
||||
|
||||
@@ -32,6 +32,10 @@ class FlagKeyTest {
|
||||
FlagKey.MigrateMyVaultToMyItems.keyName,
|
||||
"pm-20558-migrate-myvault-to-myitems",
|
||||
)
|
||||
assertEquals(
|
||||
FlagKey.ArchiveItems.keyName,
|
||||
"pm-19148-innovation-archive",
|
||||
)
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -44,6 +48,7 @@ class FlagKeyTest {
|
||||
FlagKey.BitwardenAuthenticationEnabled,
|
||||
FlagKey.ForceUpdateKdfSettings,
|
||||
FlagKey.MigrateMyVaultToMyItems,
|
||||
FlagKey.ArchiveItems,
|
||||
).all {
|
||||
!it.defaultValue
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user