vector-im/element-ios/issues/5298 - Add .well-known configuration support for tile server and map styles.

This commit is contained in:
Stefan Ceriu
2022-01-27 13:58:43 +02:00
committed by Stefan Ceriu
parent a1560bfbe5
commit ffb1ab424b
14 changed files with 76 additions and 22 deletions

View File

@@ -16,19 +16,20 @@
import Foundation
/// Represents the homeserver configuration (usually based on HS Well-Known or hardoced values in the project)
/// Represents the homeserver configuration (usually based on HS Well-Known or hardcoded values in the project)
@objcMembers
final class HomeserverConfiguration: NSObject {
// Note: Use an object per configuration subject when there is multiple properties related
let jitsi: HomeserverJitsiConfiguration
let isE2EEByDefaultEnabled: Bool
let tileServer: HomeserverTileServerConfiguration
init(jitsi: HomeserverJitsiConfiguration,
isE2EEByDefaultEnabled: Bool) {
isE2EEByDefaultEnabled: Bool,
tileServer: HomeserverTileServerConfiguration) {
self.jitsi = jitsi
self.isE2EEByDefaultEnabled = isE2EEByDefaultEnabled
super.init()
self.tileServer = tileServer
}
}