mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-08-04 20:34:14 +01:00
Enable regV5 on debug builds.
This commit is contained in:
committed by
Michelle Tang
parent
e07a3e05bf
commit
8eeffff923
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user