Read tile server URL from .well-known (PSG-592)

Signed-off-by: Johannes Marbach <johannesm@element.io>
This commit is contained in:
Johannes Marbach
2022-07-25 17:00:37 +02:00
parent 73e532adf8
commit f07cac669e
7 changed files with 34 additions and 23 deletions
@@ -76,7 +76,7 @@ final class HomeserverConfigurationBuilder: NSObject {
let mapStyleURL = URL(string: mapStyleURLString) {
tileServerMapStyleURL = mapStyleURL
} else {
tileServerMapStyleURL = BuildSettings.tileServerMapStyleURL
tileServerMapStyleURL = BuildSettings.defaultTileServerMapStyleURL
}
let tileServerConfiguration = HomeserverTileServerConfiguration(mapStyleURL: tileServerMapStyleURL)