mirror of
https://github.com/bitwarden/android.git
synced 2026-10-23 03:23:53 -05:00
PM-15831 - 🍒 Enable remote configuration of enable-authenticator-sync-android feature flag (#4442)
This commit is contained in:
1 parent
b32c59385e
commit
53b389bcf2
2 files changed
+7
-1
No files matched your search
@@ -43,7 +43,7 @@ sealed class FlagKey<out T : Any> {
|
||||
data object AuthenticatorSync : FlagKey<Boolean>() {
|
||||
override val keyName: String = "enable-authenticator-sync-android"
|
||||
override val defaultValue: Boolean = false
|
||||
override val isRemotelyConfigured: Boolean = false
|
||||
override val isRemotelyConfigured: Boolean = true
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -2,6 +2,7 @@ package com.x8bit.bitwarden.data.platform.manager
|
||||
|
||||
import com.x8bit.bitwarden.data.platform.manager.model.FlagKey
|
||||
import org.junit.jupiter.api.Assertions.assertFalse
|
||||
import org.junit.jupiter.api.Assertions.assertTrue
|
||||
import org.junit.jupiter.api.Test
|
||||
|
||||
class FlagKeyTest {
|
||||
@@ -11,6 +12,11 @@ class FlagKeyTest {
|
||||
assertFalse(FlagKey.AuthenticatorSync.defaultValue)
|
||||
}
|
||||
|
||||
@Test
|
||||
fun `AuthenticatorSync is remotely configured value should be true`() {
|
||||
assertTrue(FlagKey.AuthenticatorSync.isRemotelyConfigured)
|
||||
}
|
||||
|
||||
@Test
|
||||
fun `EmailVerification default value should be false`() {
|
||||
assertFalse(FlagKey.EmailVerification.defaultValue)
|
||||
|
||||
Reference in new issue
Block a user