mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 00:59:49 +01:00
Do not make all instrumentation tests internal users.
This commit is contained in:
@@ -16,6 +16,7 @@ import org.thoughtcrime.securesms.jobmanager.impl.NoRemoteArchiveGarbageCollecti
|
||||
import org.thoughtcrime.securesms.jobmanager.impl.RestoreAttachmentConstraintObserver
|
||||
import org.thoughtcrime.securesms.keyvalue.protos.ArchiveUploadProgressState
|
||||
import org.thoughtcrime.securesms.keyvalue.protos.BackupDownloadNotifierState
|
||||
import org.thoughtcrime.securesms.util.Environment
|
||||
import org.thoughtcrime.securesms.util.RemoteConfig
|
||||
import org.whispersystems.signalservice.api.archive.ArchiveServiceCredential
|
||||
import org.whispersystems.signalservice.api.archive.GetArchiveCdnCredentialsResponse
|
||||
@@ -228,7 +229,7 @@ class BackupValues(store: KeyValueStore) : SignalStoreValues(store) {
|
||||
}
|
||||
set(value) {
|
||||
// TODO [backup] Remove for launch
|
||||
if (!RemoteConfig.internalUser && value != null) {
|
||||
if (!RemoteConfig.internalUser && !Environment.IS_INSTRUMENTATION && value != null) {
|
||||
throw IllegalStateException("Setting backup tier is only allowed for internal users!")
|
||||
}
|
||||
|
||||
|
||||
@@ -186,7 +186,7 @@ class InternalValues internal constructor(store: KeyValueStore) : SignalStoreVal
|
||||
var showArchiveStateHint by booleanValue(SHOW_ARCHIVE_STATE_HINT, false).defaultForExternalUsers()
|
||||
|
||||
/** Whether or not we should include a debuglog in the backup debug info when generating a backup. */
|
||||
var includeDebuglogInBackup by booleanValue(INCLUDE_DEBUGLOG_IN_BACKUP, !Environment.IS_INSTRUMENTATION).falseForExternalUsers()
|
||||
var includeDebuglogInBackup by booleanValue(INCLUDE_DEBUGLOG_IN_BACKUP, true).falseForExternalUsers()
|
||||
|
||||
/** Any [BackupDebugInfo] that was imported during the last backup restore, if any. */
|
||||
var importedBackupDebugInfo: BackupDebugInfo? by protoValue(IMPORTED_BACKUP_DEBUG_INFO, BackupDebugInfo.ADAPTER).defaultForExternalUsers()
|
||||
|
||||
Reference in New Issue
Block a user