Set feature flags for production.
This commit is contained in:
parent
a45f94fe7f
commit
7d219b410b
@ -478,10 +478,12 @@ NSString *const TSAccountManager_DeviceId = @"TSAccountManager_DeviceId";
|
||||
}
|
||||
|
||||
- (void)storeLocalNumber:(NSString *)localNumber
|
||||
uuid:(NSUUID *)localUuid
|
||||
uuid:(nullable NSUUID *)localUuid
|
||||
transaction:(SDSAnyWriteTransaction *)transaction
|
||||
{
|
||||
OWSAssertDebug(localUuid);
|
||||
// TODO UUID: make uuid non-nullable when enabling SSKFeatureFlags.allowUUIDOnlyContacts in production
|
||||
// canary assert for this TODO.
|
||||
OWSAssertDebug(!TSConstants.isUsingProductionService || !SSKFeatureFlags.allowUUIDOnlyContacts);
|
||||
|
||||
@synchronized (self) {
|
||||
[self.keyValueStore setString:localNumber key:TSAccountManager_RegisteredNumberKey transaction:transaction];
|
||||
|
||||
@ -18,7 +18,7 @@ extension FeatureBuild {
|
||||
}
|
||||
}
|
||||
|
||||
let build: FeatureBuild = .qa
|
||||
let build: FeatureBuild = OWSIsDebugBuild() ? .dev : .beta
|
||||
|
||||
// MARK: -
|
||||
|
||||
@ -174,7 +174,7 @@ public class FeatureFlags: NSObject {
|
||||
public static let multiRing: Bool = false
|
||||
|
||||
@objc
|
||||
public static let groupsV2 = true
|
||||
public static let groupsV2 = build.includes(.qa) && !isUsingProductionService
|
||||
|
||||
// Don't consult this feature flag directly; instead
|
||||
// consult RemoteConfig.groupsV2CreateGroups.
|
||||
@ -206,7 +206,7 @@ public class FeatureFlags: NSObject {
|
||||
public static let linkedPhones = build.includes(.internalPreview)
|
||||
|
||||
@objc
|
||||
public static let isUsingProductionService = false
|
||||
public static let isUsingProductionService = true
|
||||
|
||||
@objc
|
||||
public static let versionedProfiledFetches = groupsV2
|
||||
@ -261,7 +261,7 @@ public class DebugFlags: NSObject {
|
||||
public static let groupsV2dontSendUpdates = false
|
||||
|
||||
@objc
|
||||
public static let groupsV2showV2Indicator = true
|
||||
public static let groupsV2showV2Indicator = FeatureFlags.groupsV2 && build.includes(.qa)
|
||||
|
||||
// If set, v2 groups will be created and updated with invalid avatars
|
||||
// so that we can test clients' robustness to this case.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user