mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-21 00:52:43 +02:00
MESSENGER-3352 build settings
This commit is contained in:
@@ -406,7 +406,7 @@ ChangePasswordCoordinatorBridgePresenterDelegate>
|
||||
[tmpSections addObject:sectionDowntime];
|
||||
}
|
||||
|
||||
if (BwiBuildSettings.bwiCheckAppVersion && [[[ValidAppVersionsDefaultService alloc] init] isCurrentAppVersionOutdated]) {
|
||||
if (BWIBuildSettings.shared.bwiCheckAppVersion && [[[ValidAppVersionsDefaultService alloc] init] isCurrentAppVersionOutdated]) {
|
||||
Section *sectionOutdated = [Section sectionWithTag:SECTION_TAG_OUTDATED_WARNING];
|
||||
[sectionOutdated addRowWithTag:OUTDATED_WARNING];
|
||||
sectionOutdated.headerTitle = [BWIL10n bwiOutdatedSettingsHeader];
|
||||
@@ -416,7 +416,7 @@ ChangePasswordCoordinatorBridgePresenterDelegate>
|
||||
Section *sectionUserSettings = [Section sectionWithTag:SECTION_TAG_USER_SETTINGS];
|
||||
[sectionUserSettings addRowWithTag:USER_SETTINGS_PROFILE_PICTURE_INDEX];
|
||||
[sectionUserSettings addRowWithTag:USER_SETTINGS_DISPLAYNAME_INDEX];
|
||||
if (BwiBuildSettings.bwiEnablePersonalState) {
|
||||
if (BWIBuildSettings.shared.bwiEnablePersonalState) {
|
||||
[sectionUserSettings addRowWithTag:USER_SETTINGS_PERSONAL_STATE_INDEX];
|
||||
}
|
||||
if (RiotSettings.shared.settingsScreenShowChangePassword)
|
||||
@@ -433,7 +433,7 @@ ChangePasswordCoordinatorBridgePresenterDelegate>
|
||||
}
|
||||
MXKAccount* account = [MXKAccountManager sharedManager].activeAccounts.firstObject;
|
||||
// add linked emails
|
||||
if (BuildSettings.settingsScreenAllowAddingLinkedEmails)
|
||||
if (BWIBuildSettings.shared.settingsScreenAllowAddingLinkedEmails)
|
||||
{
|
||||
for (NSInteger index = 0; index < account.linkedEmails.count; index++)
|
||||
{
|
||||
@@ -441,22 +441,22 @@ ChangePasswordCoordinatorBridgePresenterDelegate>
|
||||
}
|
||||
}
|
||||
// add linked phone numbers
|
||||
if (BuildSettings.settingsScreenAllowAddingPhoneNumbers)
|
||||
if (BWIBuildSettings.shared.settingsScreenAllowAddingPhoneNumbers)
|
||||
{
|
||||
for (NSInteger index = 0; index < account.linkedPhoneNumbers.count; index++)
|
||||
{
|
||||
[sectionUserSettings addRowWithTag: USER_SETTINGS_PHONENUMBERS_OFFSET + index];
|
||||
}
|
||||
}
|
||||
if (BuildSettings.settingsScreenAllowAddingEmailThreepids)
|
||||
if (BWIBuildSettings.shared.settingsScreenAllowAddingEmailThreepids)
|
||||
{
|
||||
[sectionUserSettings addRowWithTag:USER_SETTINGS_ADD_EMAIL_INDEX];
|
||||
}
|
||||
if (BuildSettings.settingsScreenAllowAddingPhoneThreepids)
|
||||
if (BWIBuildSettings.shared.settingsScreenAllowAddingPhoneThreepids)
|
||||
{
|
||||
[sectionUserSettings addRowWithTag:USER_SETTINGS_ADD_PHONENUMBER_INDEX];
|
||||
}
|
||||
if (BuildSettings.settingsScreenShowThreepidExplanatory)
|
||||
if (BWIBuildSettings.shared.settingsScreenShowThreepidExplanatory)
|
||||
{
|
||||
NSMutableAttributedString *attributedString = [[NSMutableAttributedString alloc] initWithString:[VectorL10n settingsThreePidsManagementInformationPart1] attributes:@{}];
|
||||
[attributedString appendAttributedString:[[NSAttributedString alloc] initWithString:[VectorL10n settingsThreePidsManagementInformationPart2] attributes:@{NSForegroundColorAttributeName: ThemeService.shared.theme.tintColor}]];
|
||||
@@ -467,7 +467,7 @@ ChangePasswordCoordinatorBridgePresenterDelegate>
|
||||
sectionUserSettings.headerTitle = [VectorL10n settingsUserSettings];
|
||||
[tmpSections addObject:sectionUserSettings];
|
||||
|
||||
if (BuildSettings.bwiShowNewFeatures)
|
||||
if (BWIBuildSettings.shared.bwiShowNewFeatures)
|
||||
{
|
||||
Section *sectionNewFeatures = [Section sectionWithTag:SECTION_TAG_NEW_FEATURES];
|
||||
[sectionNewFeatures addRowWithTag:SHOW_NEW_FEATURES];
|
||||
@@ -475,7 +475,7 @@ ChangePasswordCoordinatorBridgePresenterDelegate>
|
||||
[tmpSections addObject:sectionNewFeatures];
|
||||
}
|
||||
|
||||
if (BuildSettings.settingsScreenShowConfirmMediaSize)
|
||||
if (BWIBuildSettings.shared.settingsScreenShowConfirmMediaSize)
|
||||
{
|
||||
Section *sectionMedia = [Section sectionWithTag:SECTION_TAG_SENDING_MEDIA];
|
||||
[sectionMedia addRowWithTag:SENDING_MEDIA_CONFIRM_SIZE];
|
||||
@@ -484,7 +484,7 @@ ChangePasswordCoordinatorBridgePresenterDelegate>
|
||||
[tmpSections addObject:sectionMedia];
|
||||
}
|
||||
|
||||
if (BuildSettings.settingsScreenShowLinkPreviews)
|
||||
if (BWIBuildSettings.shared.settingsScreenShowLinkPreviews)
|
||||
{
|
||||
Section *sectionLinks = [Section sectionWithTag:SECTION_TAG_LINKS];
|
||||
[sectionLinks addRowWithTag:LINKS_SHOW_URL_PREVIEWS_INDEX];
|
||||
@@ -511,7 +511,7 @@ ChangePasswordCoordinatorBridgePresenterDelegate>
|
||||
if (RiotSettings.shared.settingsScreenShowSystemSettingsOption) {
|
||||
[sectionNotificationSettings addRowWithTag:NOTIFICATION_SETTINGS_SYSTEM_SETTINGS];
|
||||
}
|
||||
if (BwiBuildSettings.bwiSettingsShowInAppNotifications) {
|
||||
if (BWIBuildSettings.shared.bwiSettingsShowInAppNotifications) {
|
||||
[sectionNotificationSettings addRowWithTag:NOTIFICATION_SETTINGS_SHOW_IN_APP_INDEX];
|
||||
}
|
||||
if (RiotSettings.shared.settingsScreenShowNotificationDecodedContentOption)
|
||||
@@ -519,7 +519,7 @@ ChangePasswordCoordinatorBridgePresenterDelegate>
|
||||
[sectionNotificationSettings addRowWithTag:NOTIFICATION_SETTINGS_SHOW_DECODED_CONTENT];
|
||||
}
|
||||
|
||||
if (BwiBuildSettings.bwiShowPinnedNotificationSettings) {
|
||||
if (BWIBuildSettings.shared.bwiShowPinnedNotificationSettings) {
|
||||
[sectionNotificationSettings addRowWithTag:NOTIFICATION_SETTINGS_PIN_MISSED_NOTIFICATIONS_INDEX];
|
||||
[sectionNotificationSettings addRowWithTag:NOTIFICATION_SETTINGS_PIN_UNREAD_INDEX];
|
||||
}
|
||||
@@ -530,7 +530,7 @@ ChangePasswordCoordinatorBridgePresenterDelegate>
|
||||
if (RiotSettings.shared.settingsNotificationsShowMentions) {
|
||||
[sectionNotificationSettings addRowWithTag:NOTIFICATION_SETTINGS_MENTION_AND_KEYWORDS_SETTINGS_INDEX];
|
||||
}
|
||||
if (BwiBuildSettings.bwiNotificationTimes) {
|
||||
if (BWIBuildSettings.shared.bwiNotificationTimes) {
|
||||
[sectionNotificationSettings addRowWithTag:NOTIFICATION_SETTINGS_NOTIFICATION_TIMES_INDEX];
|
||||
}
|
||||
if (RiotSettings.shared.settingsNotificationsShowAdvanced) {
|
||||
@@ -540,20 +540,20 @@ ChangePasswordCoordinatorBridgePresenterDelegate>
|
||||
sectionNotificationSettings.headerTitle = [VectorL10n settingsNotifications];
|
||||
[tmpSections addObject:sectionNotificationSettings];
|
||||
|
||||
if (BuildSettings.allowVoIPUsage && BuildSettings.stunServerFallbackUrlString && RiotSettings.shared.settingsScreenShowEnableStunServerFallback)
|
||||
if (BWIBuildSettings.shared.allowVoIPUsage && BWIBuildSettings.shared.stunServerFallbackUrlString && RiotSettings.shared.settingsScreenShowEnableStunServerFallback)
|
||||
{
|
||||
Section *sectionCalls = [Section sectionWithTag:SECTION_TAG_CALLS];
|
||||
sectionCalls.headerTitle = [VectorL10n settingsCallsSettings];
|
||||
|
||||
// Remove "stun:"
|
||||
NSString* stunFallbackHost = [BuildSettings.stunServerFallbackUrlString componentsSeparatedByString:@":"].lastObject;
|
||||
NSString* stunFallbackHost = [BWIBuildSettings.shared.stunServerFallbackUrlString componentsSeparatedByString:@":"].lastObject;
|
||||
sectionCalls.footerTitle = [VectorL10n settingsCallsStunServerFallbackDescription:stunFallbackHost];
|
||||
|
||||
[sectionCalls addRowWithTag:CALLS_ENABLE_STUN_SERVER_FALLBACK_INDEX];
|
||||
[tmpSections addObject:sectionCalls];
|
||||
}
|
||||
|
||||
if (BuildSettings.settingsScreenShowDiscoverySettings)
|
||||
if (BWIBuildSettings.shared.settingsScreenShowDiscoverySettings)
|
||||
{
|
||||
Section *sectionDiscovery = [Section sectionWithTag:SECTION_TAG_DISCOVERY];
|
||||
NSInteger count = self.settingsDiscoveryTableViewSection.numberOfRows;
|
||||
@@ -566,7 +566,7 @@ ChangePasswordCoordinatorBridgePresenterDelegate>
|
||||
[tmpSections addObject:sectionDiscovery];
|
||||
}
|
||||
|
||||
if (BuildSettings.settingsScreenAllowIdentityServerConfig)
|
||||
if (BWIBuildSettings.shared.settingsScreenAllowIdentityServerConfig)
|
||||
{
|
||||
Section *sectionIdentityServer = [Section sectionWithTag:SECTION_TAG_IDENTITY_SERVER];
|
||||
[sectionIdentityServer addRowWithTag:IDENTITY_SERVER_INDEX];
|
||||
@@ -576,7 +576,7 @@ ChangePasswordCoordinatorBridgePresenterDelegate>
|
||||
[tmpSections addObject:sectionIdentityServer];
|
||||
}
|
||||
|
||||
if (BuildSettings.allowLocalContactsAccess)
|
||||
if (BWIBuildSettings.shared.allowLocalContactsAccess)
|
||||
{
|
||||
Section *sectionLocalContacts = [Section sectionWithTag:SECTION_TAG_LOCAL_CONTACTS];
|
||||
[sectionLocalContacts addRowWithTag:LOCAL_CONTACTS_SYNC_INDEX];
|
||||
@@ -596,7 +596,7 @@ ChangePasswordCoordinatorBridgePresenterDelegate>
|
||||
{
|
||||
Section *sectionIgnoredUsers = [Section sectionWithTag:SECTION_TAG_IGNORED_USERS];
|
||||
|
||||
if (BwiBuildSettings.bwiBetterIgnoredUsers) {
|
||||
if (BWIBuildSettings.shared.bwiBetterIgnoredUsers) {
|
||||
[sectionIgnoredUsers addRowWithTag:IGNORED_USERS_INDEX];
|
||||
} else {
|
||||
for (NSInteger index = 0; index < session.ignoredUsers.count; index++)
|
||||
@@ -629,11 +629,11 @@ ChangePasswordCoordinatorBridgePresenterDelegate>
|
||||
sectionUserInterface = [self updateTimeLine:sectionUserInterface];
|
||||
[tmpSections addObject: sectionUserInterface];
|
||||
|
||||
if (BuildSettings.bwiPersonalNotesRoom) {
|
||||
if (BWIBuildSettings.shared.bwiPersonalNotesRoom) {
|
||||
[sectionUserInterface addRowWithTag:USER_INTERFACE_PERSONAL_NOTES];
|
||||
}
|
||||
|
||||
if (BuildSettings.bwiShowTimelineSettings) {
|
||||
if (BWIBuildSettings.shared.bwiShowTimelineSettings) {
|
||||
Section *sectionTimeline = [Section sectionWithTag:SECTION_TAG_TIMELINE];
|
||||
sectionTimeline.headerTitle = VectorL10n.settingsTimeline;
|
||||
|
||||
@@ -660,7 +660,7 @@ ChangePasswordCoordinatorBridgePresenterDelegate>
|
||||
Section *sectionAdvanced = [Section sectionWithTag:SECTION_TAG_ADVANCED];
|
||||
sectionAdvanced.headerTitle = [VectorL10n settingsAdvanced];
|
||||
|
||||
if (BuildSettings.settingsScreenShowAdvancedSettings)
|
||||
if (BWIBuildSettings.shared.settingsScreenShowAdvancedSettings)
|
||||
{
|
||||
Section *sectionAdvanced = [Section sectionWithTag:SECTION_TAG_ADVANCED];
|
||||
sectionAdvanced.headerTitle = [VectorL10n settingsAdvanced];
|
||||
@@ -670,17 +670,17 @@ ChangePasswordCoordinatorBridgePresenterDelegate>
|
||||
[sectionAdvanced addRowWithTag:ADVANCED_SHOW_NSFW_ROOMS_INDEX];
|
||||
}
|
||||
|
||||
if (BuildSettings.settingsScreenAllowChangingCrashUsageDataSettings)
|
||||
if (BWIBuildSettings.shared.settingsScreenAllowChangingCrashUsageDataSettings)
|
||||
{
|
||||
[sectionAdvanced addRowWithTag:ADVANCED_CRASH_REPORT_INDEX];
|
||||
}
|
||||
if (BuildSettings.settingsScreenAllowChangingRageshakeSettings)
|
||||
if (BWIBuildSettings.shared.settingsScreenAllowChangingRageshakeSettings)
|
||||
{
|
||||
[sectionAdvanced addRowWithTag:ADVANCED_ENABLE_RAGESHAKE_INDEX];
|
||||
}
|
||||
[sectionAdvanced addRowWithTag:ADVANCED_MARK_ALL_AS_READ_INDEX];
|
||||
[sectionAdvanced addRowWithTag:ADVANCED_CLEAR_CACHE_INDEX];
|
||||
if (BuildSettings.settingsScreenAllowBugReportingManually)
|
||||
if (BWIBuildSettings.shared.settingsScreenAllowBugReportingManually)
|
||||
{
|
||||
[sectionAdvanced addRowWithTag:ADVANCED_REPORT_BUG_INDEX];
|
||||
}
|
||||
@@ -693,12 +693,12 @@ ChangePasswordCoordinatorBridgePresenterDelegate>
|
||||
[sectionAbout addRowWithTag:ABOUT_OLM_VERSION_INDEX];
|
||||
|
||||
// bwi 2098 - show element base version
|
||||
if ([BuildSettings showElementBaseVersion])
|
||||
if ([BWIBuildSettings.shared showElementBaseVersion])
|
||||
{
|
||||
[sectionAbout addRowWithTag:ABOUT_ELEMENT_VERSION_INDEX];
|
||||
}
|
||||
|
||||
if (BuildSettings.settingsScreenShowSupportSetting)
|
||||
if (BWIBuildSettings.shared.settingsScreenShowSupportSetting)
|
||||
{
|
||||
[sectionAbout addRowWithTag:ABOUT_SUPPORT_INDEX];
|
||||
}
|
||||
@@ -714,7 +714,7 @@ ChangePasswordCoordinatorBridgePresenterDelegate>
|
||||
{
|
||||
[sectionAbout addRowWithTag:ABOUT_TERM_CONDITIONS_INDEX];
|
||||
}
|
||||
if (BuildSettings.applicationPrivacyPolicyUrlString.length)
|
||||
if (BWIBuildSettings.shared.applicationPrivacyPolicyUrlString.length)
|
||||
{
|
||||
[sectionAbout addRowWithTag:ABOUT_PRIVACY_INDEX];
|
||||
}
|
||||
@@ -724,21 +724,21 @@ ChangePasswordCoordinatorBridgePresenterDelegate>
|
||||
[sectionAbout addRowWithTag:ABOUT_MARK_ALL_AS_READ_INDEX];
|
||||
[sectionAbout addRowWithTag:ABOUT_CLEAR_CACHE_INDEX];
|
||||
|
||||
if (BuildSettings.bwiShowDeveloperSettings) {
|
||||
if (BWIBuildSettings.shared.bwiShowDeveloperSettings) {
|
||||
Section *sectionDeveloper = [Section sectionWithTag:SECTION_TAG_DEVELOPER];
|
||||
[sectionDeveloper addRowWithTag:DEVELOPER_SHOW_SETTINGS_INDEX];
|
||||
sectionDeveloper.headerTitle = BWIL10n.bwiSettingsDeveloper;
|
||||
[tmpSections addObject:sectionDeveloper];
|
||||
}
|
||||
|
||||
if (BuildSettings.settingsScreenShowAdvancedSettings)
|
||||
if (BWIBuildSettings.shared.settingsScreenShowAdvancedSettings)
|
||||
{
|
||||
sectionAbout.footerTitle = [self buildAboutSectionFooterTitleWithAccount:account];
|
||||
}
|
||||
|
||||
[tmpSections addObject:sectionAbout];
|
||||
|
||||
if (BuildSettings.settingsScreenShowLabSettings)
|
||||
if (BWIBuildSettings.shared.settingsScreenShowLabSettings)
|
||||
{
|
||||
Section *sectionLabs = [Section sectionWithTag:SECTION_TAG_LABS];
|
||||
[sectionLabs addRowWithTag:LABS_ENABLE_RINGING_FOR_GROUP_CALLS_INDEX];
|
||||
@@ -757,7 +757,7 @@ ChangePasswordCoordinatorBridgePresenterDelegate>
|
||||
}
|
||||
}
|
||||
|
||||
if (BuildSettings.settingsScreenAllowDeactivatingAccount)
|
||||
if (BWIBuildSettings.shared.settingsScreenAllowDeactivatingAccount)
|
||||
{
|
||||
Section *sectionDeactivate = [Section sectionWithTag:SECTION_TAG_DEACTIVATE_ACCOUNT];
|
||||
[sectionDeactivate addRowWithTag:0];
|
||||
@@ -2513,7 +2513,7 @@ ChangePasswordCoordinatorBridgePresenterDelegate>
|
||||
else if (section == SECTION_TAG_IGNORED_USERS)
|
||||
{
|
||||
MXKTableViewCell *ignoredUserCell = [self getDefaultTableViewCell:tableView];
|
||||
if (BwiBuildSettings.bwiBetterIgnoredUsers) {
|
||||
if (BWIBuildSettings.shared.bwiBetterIgnoredUsers) {
|
||||
ignoredUserCell.textLabel.text = BWIL10n.bwiSettingsIgnoredUsersText;
|
||||
} else {
|
||||
ignoredUserCell.textLabel.text = session.ignoredUsers[row];
|
||||
@@ -2606,7 +2606,7 @@ ChangePasswordCoordinatorBridgePresenterDelegate>
|
||||
{
|
||||
MXKTableViewCell *versionCell = [self getDefaultTableViewCell:tableView];
|
||||
|
||||
versionCell.textLabel.text = [BWIL10n settingsElementVersion:[BuildSettings elementBaseVersion]];
|
||||
versionCell.textLabel.text = [BWIL10n settingsElementVersion:[BWIBuildSettings.shared elementBaseVersion]];
|
||||
|
||||
versionCell.selectionStyle = UITableViewCellSelectionStyleNone;
|
||||
|
||||
@@ -3150,7 +3150,7 @@ ChangePasswordCoordinatorBridgePresenterDelegate>
|
||||
}
|
||||
else if (section == SECTION_TAG_IGNORED_USERS)
|
||||
{
|
||||
if (BwiBuildSettings.bwiBetterIgnoredUsers) {
|
||||
if (BWIBuildSettings.shared.bwiBetterIgnoredUsers) {
|
||||
[self bwiShowIgnoredUsersScreen];
|
||||
} else {
|
||||
MXSession* session = self.mainSession;
|
||||
@@ -3218,7 +3218,7 @@ ChangePasswordCoordinatorBridgePresenterDelegate>
|
||||
{
|
||||
if (row == ABOUT_COPYRIGHT_INDEX)
|
||||
{
|
||||
WebViewViewController *webViewViewController = [[WebViewViewController alloc] initWithURL:BuildSettings.applicationCopyrightUrlString];
|
||||
WebViewViewController *webViewViewController = [[WebViewViewController alloc] initWithURL:BWIBuildSettings.shared.applicationCopyrightUrlString];
|
||||
|
||||
webViewViewController.title = [BWIL10n settingsCopyright];
|
||||
|
||||
@@ -3244,7 +3244,7 @@ ChangePasswordCoordinatorBridgePresenterDelegate>
|
||||
}
|
||||
else if (row == ABOUT_PRIVACY_INDEX)
|
||||
{
|
||||
WebViewViewController *webViewViewController = [[WebViewViewController alloc] initWithURL:BuildSettings.applicationPrivacyPolicyUrlString];
|
||||
WebViewViewController *webViewViewController = [[WebViewViewController alloc] initWithURL:BWIBuildSettings.shared.applicationPrivacyPolicyUrlString];
|
||||
|
||||
webViewViewController.title = [VectorL10n settingsPrivacyPolicy];
|
||||
|
||||
@@ -3603,7 +3603,7 @@ ChangePasswordCoordinatorBridgePresenterDelegate>
|
||||
{
|
||||
RiotSettings.shared.allowStunServerFallback = sender.isOn;
|
||||
|
||||
self.mainSession.callManager.fallbackSTUNServer = RiotSettings.shared.allowStunServerFallback ? BuildSettings.stunServerFallbackUrlString : nil;
|
||||
self.mainSession.callManager.fallbackSTUNServer = RiotSettings.shared.allowStunServerFallback ? BWIBuildSettings.shared.stunServerFallbackUrlString : nil;
|
||||
}
|
||||
|
||||
- (void)toggleAllowIntegrations:(UISwitch *)sender
|
||||
@@ -5020,7 +5020,7 @@ ChangePasswordCoordinatorBridgePresenterDelegate>
|
||||
if (RiotSettings.shared.settingsScreenShowSimpleTimeLineOptions) {
|
||||
[timelineSection addRowWithTag:TIMELINE_SIMPLE_INDEX];
|
||||
} else {
|
||||
if (BuildSettings.bwiShowMessageBubbles)
|
||||
if (BWIBuildSettings.shared.bwiShowMessageBubbles)
|
||||
{
|
||||
[timelineSection addRowWithTag:USER_INTERFACE_TIMELINE_STYLE_INDEX];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user