mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
Allow overriding the bug report app ID and analytics cookies URL. (#3969)
This commit is contained in:
@@ -90,6 +90,7 @@ final class AppSettings {
|
|||||||
|
|
||||||
// MARK: - Hooks
|
// MARK: - Hooks
|
||||||
|
|
||||||
|
// swiftlint:disable:next function_parameter_count
|
||||||
func override(defaultHomeserverAddress: String,
|
func override(defaultHomeserverAddress: String,
|
||||||
oidcRedirectURL: URL,
|
oidcRedirectURL: URL,
|
||||||
websiteURL: URL,
|
websiteURL: URL,
|
||||||
@@ -98,6 +99,8 @@ final class AppSettings {
|
|||||||
acceptableUseURL: URL,
|
acceptableUseURL: URL,
|
||||||
privacyURL: URL,
|
privacyURL: URL,
|
||||||
supportEmailAddress: String,
|
supportEmailAddress: String,
|
||||||
|
bugReportApplicationID: String,
|
||||||
|
analyticsTermsURL: URL?,
|
||||||
mapTilerConfiguration: MapTilerConfiguration) {
|
mapTilerConfiguration: MapTilerConfiguration) {
|
||||||
self.defaultHomeserverAddress = defaultHomeserverAddress
|
self.defaultHomeserverAddress = defaultHomeserverAddress
|
||||||
self.oidcRedirectURL = oidcRedirectURL
|
self.oidcRedirectURL = oidcRedirectURL
|
||||||
@@ -107,6 +110,8 @@ final class AppSettings {
|
|||||||
self.acceptableUseURL = acceptableUseURL
|
self.acceptableUseURL = acceptableUseURL
|
||||||
self.privacyURL = privacyURL
|
self.privacyURL = privacyURL
|
||||||
self.supportEmailAddress = supportEmailAddress
|
self.supportEmailAddress = supportEmailAddress
|
||||||
|
self.bugReportApplicationID = bugReportApplicationID
|
||||||
|
self.analyticsTermsURL = analyticsTermsURL
|
||||||
self.mapTilerConfiguration = mapTilerConfiguration
|
self.mapTilerConfiguration = mapTilerConfiguration
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -226,7 +231,7 @@ final class AppSettings {
|
|||||||
let bugReportServiceBaseURL: URL? = Secrets.rageshakeServerURL.map { URL(string: $0)! } // swiftlint:disable:this force_unwrapping
|
let bugReportServiceBaseURL: URL? = Secrets.rageshakeServerURL.map { URL(string: $0)! } // swiftlint:disable:this force_unwrapping
|
||||||
let bugReportSentryURL: URL? = Secrets.sentryDSN.map { URL(string: $0)! } // swiftlint:disable:this force_unwrapping
|
let bugReportSentryURL: URL? = Secrets.sentryDSN.map { URL(string: $0)! } // swiftlint:disable:this force_unwrapping
|
||||||
/// The name allocated by the bug report server
|
/// The name allocated by the bug report server
|
||||||
let bugReportApplicationID = "element-x-ios"
|
private(set) var bugReportApplicationID = "element-x-ios"
|
||||||
/// The maximum size of the upload request. Default value is just below CloudFlare's max request size.
|
/// The maximum size of the upload request. Default value is just below CloudFlare's max request size.
|
||||||
let bugReportMaxUploadSize = 50 * 1024 * 1024
|
let bugReportMaxUploadSize = 50 * 1024 * 1024
|
||||||
|
|
||||||
|
|||||||
+1
-1
Submodule Enterprise updated: d7e62932e7...422a836e93
Reference in New Issue
Block a user