[PM-31613] Add send email verification feature flag (#6470)

This commit is contained in:
aj-rosado
2026-02-03 17:09:15 +00:00
committed by GitHub
parent 4cac4d6a6e
commit b0eea88af2
4 changed files with 17 additions and 0 deletions

View File

@@ -37,6 +37,7 @@ sealed class FlagKey<out T : Any> {
NoLogoutOnKdfChange,
MigrateMyVaultToMyItems,
ArchiveItems,
SendEmailVerification,
)
}
}
@@ -107,6 +108,14 @@ sealed class FlagKey<out T : Any> {
override val defaultValue: Boolean = false
}
/**
* Data object holding the feature flag key for the Send Email Verification feature.
*/
data object SendEmailVerification : FlagKey<Boolean>() {
override val keyName: String = "pm-19051-send-email-verification"
override val defaultValue: Boolean = false
}
//region Dummy keys for testing
/**
* Data object holding the key for a [Boolean] flag to be used in tests.

View File

@@ -36,6 +36,10 @@ class FlagKeyTest {
FlagKey.ArchiveItems.keyName,
"pm-19148-innovation-archive",
)
assertEquals(
FlagKey.SendEmailVerification.keyName,
"pm-19051-send-email-verification",
)
}
@Test
@@ -49,6 +53,7 @@ class FlagKeyTest {
FlagKey.ForceUpdateKdfSettings,
FlagKey.MigrateMyVaultToMyItems,
FlagKey.ArchiveItems,
FlagKey.SendEmailVerification,
).all {
!it.defaultValue
},