From 53b389bcf2989bf2c3b1ca5b8a8761647d4702a5 Mon Sep 17 00:00:00 2001 From: Phil Cappelli <150719757+phil-livefront@users.noreply.github.com> Date: Mon, 9 Dec 2024 13:32:09 -0600 Subject: [PATCH] =?UTF-8?q?PM-15831=20-=20=F0=9F=8D=92=20Enable=20remote?= =?UTF-8?q?=20configuration=20of=20`enable-authenticator-sync-android`=20f?= =?UTF-8?q?eature=20flag=20(#4442)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../x8bit/bitwarden/data/platform/manager/model/FlagKey.kt | 2 +- .../x8bit/bitwarden/data/platform/manager/FlagKeyTest.kt | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/x8bit/bitwarden/data/platform/manager/model/FlagKey.kt b/app/src/main/java/com/x8bit/bitwarden/data/platform/manager/model/FlagKey.kt index 60d81bd421f..beec8941092 100644 --- a/app/src/main/java/com/x8bit/bitwarden/data/platform/manager/model/FlagKey.kt +++ b/app/src/main/java/com/x8bit/bitwarden/data/platform/manager/model/FlagKey.kt @@ -43,7 +43,7 @@ sealed class FlagKey { data object AuthenticatorSync : FlagKey() { override val keyName: String = "enable-authenticator-sync-android" override val defaultValue: Boolean = false - override val isRemotelyConfigured: Boolean = false + override val isRemotelyConfigured: Boolean = true } /** diff --git a/app/src/test/java/com/x8bit/bitwarden/data/platform/manager/FlagKeyTest.kt b/app/src/test/java/com/x8bit/bitwarden/data/platform/manager/FlagKeyTest.kt index 6be73357a90..3c3d0623016 100644 --- a/app/src/test/java/com/x8bit/bitwarden/data/platform/manager/FlagKeyTest.kt +++ b/app/src/test/java/com/x8bit/bitwarden/data/platform/manager/FlagKeyTest.kt @@ -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)