Files
bundesmessenger-ios/bwi/BwiBuildSettings.swift
T
2022-10-06 06:19:33 +00:00

128 lines
4.8 KiB
Swift

//
/*
* Copyright (c) 2021 BWI GmbH
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import Foundation
@objcMembers
final class BwiBuildSettings: NSObject {
// Integration check
static let forcedPinProtection = true
// Jailbreak check
static let forcedNoneJailbroken = true
/// Default number of iterations for secure storage. Do not change this value after going live.
static let iterationsForSecureStorage: UInt = 100000
/// Allow split view detail view stacking
static let allowSplitViewDetailsScreenStacking: Bool = true
// direct rooms are for two persons only in bwi context
static let allowInviteOnDirectRooms: Bool = false
// test setup for downtime: should be false for all builds
static let useTestDataForDowntime: Bool = false
static let flavor = ""
static let showBwiSplashScreen: Bool = false
static let bwiShowRoomSearch: Bool = false
static let bwiAllowRoomPermalink: Bool = false
static let bwiAllowUserPermalink: Bool = false
static let bwiCheckAppVersion = true
static let bwiSettingsShowSecureBackupSection = false
static let bwiSettingsShowCrossSigningSection = false
static let bwiNotificationTimes = true
static let bwiUserLabelsAdminSettingsVisible = true
static let bwiUserLabelsMemberDetailsVisible = true
static let bwiUserLabelsParticipantsVisible = true
static let bwiUserLabelsTimelineDisplayNameVisible = true
static let bwiUserLabelsTimelineEventVisible = true
static let bwiUserLabelEventTypeString = "de.bwi.room.user_function_labels"
static let bwiUserLabelParticipantSorting = true
static let bwiShowClosedPolls = true
static let bwiShowThreads = false
static let bwiShowRoomCreationSectionFooter = false
static let bwiAutoCreateAliasOnRoomCreation = true
static let bwiLocationShareButtonVisible = false
static let bwiUseCustomPersonalNotesAvatar = true
static let bwiBetterIgnoredUsers = true
static let bwiSettingsShowInAppNotifications = false
static let bwiFilteredContextMenu = true
static let bwiShowPinnedNotificationSettings = false
static let bwiShowSessionSettingsFooter = false
static let bwiEnablePersonalState = false
// In onboarding splash screen dis/enable register button
static let bwiOnboardingSplashScreenEnableRegister = false
// make sure that the NSE extention always resets message body and title
static let bwiHideNotificationMessageBody = true
// in Auth screen dis/enable register button even with onboarding splash screen enabled
static let bwiAuthentificationScreenEnableRegister = false
// enable BuM style authentication UI (more Info text and a logo)
static let bwiEnableBuMAuthentificationUI = true
// voicemessages should resignplaying when the app enters the background
static let bwiResignPlayingVoiceMessageInBackground = true
// enable BUM style UI in pincode and maybe other places
static let bwiEnableBuMUI = true
// clear media cache every time when leaving a room vc: no media should be saved on device for security purposes
static let bwiClearMediaCacheOnRoomExit = true
static let bwiEnableLoginProtection = true
static let bwiHashes = [ "a3f65e35a7476799afe8d80282fb3c45b39dab06d0d8c70dc98e45ab7d8e93a9",
"2fda1a831655c22a5e6096d7cfbff4429fbf27881141e191b46adbf168142a11",
"4f8cbb3fef885f7284d0477d797d7007f0e1ba76221834132652f4d645796e28",
"24c2ec541e61e8e68941b96dc45ed5df12f6bdbda283cb0b3a322742aa970256",
"1be0b314a6c915d4475290522baef5b642db1b6d68937992b8e0eb5b7b0d6666" ]
// use a different badge color if the user was mentioned in a room
static let showMentionsInRoom = true
// replace feature history link variable with the appropiate build setting
static let bwiFeatureHistoryLink = "https://messenger.bwi.de/#c4783"
static let bwiReplaceFeatureLink = true
// login with matrix id should only be enabled in some configurations
static let bwiEnableLoginWithMatrixID = true
// DMs don't need all roomsettings (like changing avatar, name, topic)
static let showUnrelatedRoomSettingsForDirectMessages = false
}