Enable regV5 on debug builds.

This commit is contained in:
Greyson Parrelli
2026-06-26 12:29:53 -04:00
committed by Michelle Tang
parent e07a3e05bf
commit 8eeffff923
2 changed files with 2 additions and 6 deletions
@@ -22,7 +22,8 @@ object Environment {
return !IS_INSTRUMENTATION && (BuildConfig.DEBUG || IS_NIGHTLY || IS_PERF || IS_STAGING)
}
const val USE_NEW_REGISTRATION: Boolean = false
@JvmField
val USE_NEW_REGISTRATION: Boolean = BuildConfig.DEBUG
const val IS_LINK_AND_SYNC_AVAILABLE: Boolean = false
object Backups {
@@ -4,11 +4,6 @@ import org.junit.Assert.assertFalse
import org.junit.Test
class EnvironmentTest {
@Test
fun `USE_NEW_REGISTRATION must be false for release`() {
assertFalse("USE_NEW_REGISTRATION must not be committed as true!", Environment.USE_NEW_REGISTRATION)
}
@Test
fun `IS_LINK_AND_SYNC_AVAILABLE must be false for release`() {
assertFalse("IS_LINK_AND_SYNC_AVAILABLE must not be committed as true!", Environment.IS_LINK_AND_SYNC_AVAILABLE)