session-ios/SignalServiceKit/src/Util/FeatureFlags.swift

33 lines
1.1 KiB
Swift
Raw Normal View History

2019-02-23 01:07:24 +01:00
//
// Copyright (c) 2019 Open Whisper Systems. All rights reserved.
//
import Foundation
/// By centralizing feature flags here and documenting their rollout plan, it's easier to review
/// which feature flags are in play.
@objc(SSKFeatureFlags)
public class FeatureFlags: NSObject {
@objc
public static var conversationSearch: Bool {
return false
}
2019-02-23 01:07:24 +01:00
/// iOS has long supported sending oversized text as a sidecar attachment. The other clients
/// simply displayed it as a text attachment. As part of the new cross-client long-text feature,
/// we want to be able to display long text with attachments as well. Existing iOS clients
/// won't properly display this, so we'll need to wait a while for rollout.
/// The stakes aren't __too__ high, because legacy clients won't lose data - they just won't
/// see the media attached to a long text message until they update their client.
@objc
public static var sendingMediaWithOversizeText: Bool {
return false
}
2019-03-08 06:05:58 +01:00
@objc
public static var useCustomPhotoCapture: Bool {
return true
2019-03-08 06:05:58 +01:00
}
2019-02-23 01:07:24 +01:00
}