mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 10:33:45 +00:00
Add support URLs to the app setting overrides. (#3987)
* Add support URLs to the app setting overrides. * Use a cache for pkl packages. * Remove the fake secrets from enterprise unit tests.
This commit is contained in:
@@ -37,14 +37,15 @@ jobs:
|
|||||||
- name: Setup environment
|
- name: Setup environment
|
||||||
run: source ci_scripts/ci_common.sh && setup_github_actions_environment
|
run: source ci_scripts/ci_common.sh && setup_github_actions_environment
|
||||||
|
|
||||||
|
- uses: actions/cache@v4
|
||||||
|
with:
|
||||||
|
path: ~/.pkl/cache
|
||||||
|
key: ${{ runner.os }}-pkl-${{ hashFiles('Secrets/Secrets.pkl') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-pkl-
|
||||||
|
|
||||||
- name: Configure Enterprise
|
- name: Configure Enterprise
|
||||||
run: bundle exec fastlane config_element_pro
|
run: bundle exec fastlane config_element_pro
|
||||||
env:
|
|
||||||
MAPLIBRE_API_KEY: WeDontNeedOneForUnitTests
|
|
||||||
SENTRY_DSN: https://sentry.localhost
|
|
||||||
POSTHOG_HOST: https://posthog.localhost
|
|
||||||
POSTHOG_API_KEY: WeDontNeedOneForUnitTests
|
|
||||||
RAGESHAKE_SERVER_URL: https://rageshake.localhost
|
|
||||||
|
|
||||||
- name: SwiftFormat
|
- name: SwiftFormat
|
||||||
run: swiftformat --lint .
|
run: swiftformat --lint .
|
||||||
|
|||||||
@@ -98,6 +98,10 @@ final class AppSettings {
|
|||||||
acceptableUseURL: URL,
|
acceptableUseURL: URL,
|
||||||
privacyURL: URL,
|
privacyURL: URL,
|
||||||
supportEmailAddress: String,
|
supportEmailAddress: String,
|
||||||
|
encryptionURL: URL,
|
||||||
|
chatBackupDetailsURL: URL,
|
||||||
|
identityPinningViolationDetailsURL: URL,
|
||||||
|
elementWebHosts: [String],
|
||||||
bugReportApplicationID: String,
|
bugReportApplicationID: String,
|
||||||
analyticsTermsURL: URL?,
|
analyticsTermsURL: URL?,
|
||||||
mapTilerConfiguration: MapTilerConfiguration) {
|
mapTilerConfiguration: MapTilerConfiguration) {
|
||||||
@@ -110,6 +114,10 @@ final class AppSettings {
|
|||||||
self.acceptableUseURL = acceptableUseURL
|
self.acceptableUseURL = acceptableUseURL
|
||||||
self.privacyURL = privacyURL
|
self.privacyURL = privacyURL
|
||||||
self.supportEmailAddress = supportEmailAddress
|
self.supportEmailAddress = supportEmailAddress
|
||||||
|
self.encryptionURL = encryptionURL
|
||||||
|
self.chatBackupDetailsURL = chatBackupDetailsURL
|
||||||
|
self.identityPinningViolationDetailsURL = identityPinningViolationDetailsURL
|
||||||
|
self.elementWebHosts = elementWebHosts
|
||||||
self.bugReportApplicationID = bugReportApplicationID
|
self.bugReportApplicationID = bugReportApplicationID
|
||||||
self.analyticsTermsURL = analyticsTermsURL
|
self.analyticsTermsURL = analyticsTermsURL
|
||||||
self.mapTilerConfiguration = mapTilerConfiguration
|
self.mapTilerConfiguration = mapTilerConfiguration
|
||||||
@@ -158,13 +166,13 @@ final class AppSettings {
|
|||||||
/// An email address that should be used for support requests.
|
/// An email address that should be used for support requests.
|
||||||
private(set) var supportEmailAddress = "support@element.io"
|
private(set) var supportEmailAddress = "support@element.io"
|
||||||
/// A URL where users can go read more about encryption in general.
|
/// A URL where users can go read more about encryption in general.
|
||||||
let encryptionURL: URL = "https://element.io/help#encryption"
|
private(set) var encryptionURL: URL = "https://element.io/help#encryption"
|
||||||
/// A URL where users can go read more about the chat backup.
|
/// A URL where users can go read more about the chat backup.
|
||||||
let chatBackupDetailsURL: URL = "https://element.io/help#encryption5"
|
private(set) var chatBackupDetailsURL: URL = "https://element.io/help#encryption5"
|
||||||
/// A URL where users can go read more about identity pinning violations
|
/// A URL where users can go read more about identity pinning violations
|
||||||
let identityPinningViolationDetailsURL: URL = "https://element.io/help#encryption18"
|
private(set) var identityPinningViolationDetailsURL: URL = "https://element.io/help#encryption18"
|
||||||
/// Any domains that Element web may be hosted on - used for handling links.
|
/// Any domains that Element web may be hosted on - used for handling links.
|
||||||
let elementWebHosts = ["app.element.io", "staging.element.io", "develop.element.io"]
|
private(set) var elementWebHosts = ["app.element.io", "staging.element.io", "develop.element.io"]
|
||||||
|
|
||||||
@UserPreference(key: UserDefaultsKeys.appAppearance, defaultValue: .system, storageType: .userDefaults(store))
|
@UserPreference(key: UserDefaultsKeys.appAppearance, defaultValue: .system, storageType: .userDefaults(store))
|
||||||
var appAppearance: AppAppearance
|
var appAppearance: AppAppearance
|
||||||
|
|||||||
+1
-1
Submodule Enterprise updated: c5e9abe87c...b04686d7cb
Reference in New Issue
Block a user