mirror of
https://github.com/bitwarden/android.git
synced 2026-03-21 22:00:42 -05:00
PM-15831 - Enable remote configuration of enable-authenticator-sync-android feature flag (#4441)
This commit is contained in:
@@ -46,7 +46,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