diff --git a/Config/BuM-Beta/BuildSettings.swift b/Config/BuM-Beta/BuildSettings.swift index 2e2581bba..63a03547e 100644 --- a/Config/BuM-Beta/BuildSettings.swift +++ b/Config/BuM-Beta/BuildSettings.swift @@ -17,10 +17,6 @@ import Foundation -#if LOCATION -import Keys -#endif - /// BuildSettings provides settings computed at build time. /// In future, it may be automatically generated from xcconfig files @objcMembers @@ -556,17 +552,5 @@ final class BuildSettings: NSObject { static let tileServerMapStyleURL = URL(string: "https://map.tyler.org")! static let locationSharingEnabled = false - - static var liveLocationSharingEnabled: Bool { - guard #available(iOS 14, *) else { - return false - } - - guard self.locationSharingEnabled else { - return false - } - - // Do not enable live location sharing atm - return false - } + static var liveLocationSharingEnabled = false } diff --git a/Config/BuildSettings.swift b/Config/BuildSettings.swift index 4271e36e5..7bb856006 100644 --- a/Config/BuildSettings.swift +++ b/Config/BuildSettings.swift @@ -17,10 +17,6 @@ import Foundation -#if LOCATION -import Keys -#endif - /// BuildSettings provides settings computed at build time. /// In future, it may be automatically generated from xcconfig files @objcMembers @@ -551,21 +547,8 @@ final class BuildSettings: NSObject { // MARK: - Location Sharing - static let tileServerMapURL = "" - static let tileServerMapStyleURL = URL(string: "https://map.tyler.org")! + static let tileServerMapStyleURL = URL(string: "https://map.sty.le/style.json")! static let locationSharingEnabled = false - - static var liveLocationSharingEnabled: Bool { - guard #available(iOS 14, *) else { - return false - } - - guard self.locationSharingEnabled else { - return false - } - - // Do not enable live location sharing atm - return false - } + static var liveLocationSharingEnabled = false } diff --git a/Riot/Modules/Application/AppCoordinator.swift b/Riot/Modules/Application/AppCoordinator.swift index 5e3a288be..6172b095a 100755 --- a/Riot/Modules/Application/AppCoordinator.swift +++ b/Riot/Modules/Application/AppCoordinator.swift @@ -88,10 +88,8 @@ final class AppCoordinator: NSObject, AppCoordinatorType { // Setup navigation router store _ = NavigationRouterStore.shared - #if LOCATION // Setup user location services _ = UserLocationServiceProvider.shared - #endif if BuildSettings.enableSideMenu { self.addSideMenu() diff --git a/Riot/Modules/Room/Location/LocationUserMarkerView.swift b/Riot/Modules/Room/Location/LocationUserMarkerView.swift deleted file mode 100644 index 7fcadd3fb..000000000 --- a/Riot/Modules/Room/Location/LocationUserMarkerView.swift +++ /dev/null @@ -1,48 +0,0 @@ -// File created from SimpleUserProfileExample -// $ createScreen.sh Room/UserSuggestion UserSuggestion -// -// Copyright 2021 New Vector Ltd -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// - -import UIKit -import Reusable -import Mapbox - -<<<<<<< HEAD:Riot/Modules/Room/Location/LocationUserMarkerView.swift -class LocationUserMarkerView: MGLAnnotationView, NibLoadable { - - @IBOutlet private var avatarView: UserAvatarView! - - override func awakeFromNib() { - super.awakeFromNib() - translatesAutoresizingMaskIntoConstraints = false - } - - func setAvatarData(_ avatarData: AvatarViewDataProtocol) { - avatarView.fill(with: avatarData) - } -======= - -/// Bubble style room cell layout constants -@objcMembers -final class BubbleRoomCellLayoutConstants: NSObject { - - static let outgoingBubbleBackgroundMargins: UIEdgeInsets = UIEdgeInsets(top: 0, left: 80, bottom: 0, right: 34) - - static let incomingBubbleBackgroundMargins: UIEdgeInsets = UIEdgeInsets(top: 0, left: 0, bottom: 0, right: 80) - - static let threadSummaryViewMargins: UIEdgeInsets = UIEdgeInsets(top: 0, left: 0, bottom: 5, right: 0) ->>>>>>> 6898f51dbcdf5d9940da07aaf4174014cc84addc:Riot/Modules/Room/Views/BubbleCells/Styles/Bubble/BubbleRoomCellLayoutConstants.swift -} diff --git a/Riot/Modules/Room/Location/LocationUserMarkerView.xib b/Riot/Modules/Room/Location/LocationUserMarkerView.xib deleted file mode 100644 index 26495f925..000000000 --- a/Riot/Modules/Room/Location/LocationUserMarkerView.xib +++ /dev/null @@ -1,46 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Riot/Modules/Room/Location/RoomTimelineLocationView.swift b/Riot/Modules/Room/Location/RoomTimelineLocationView.swift index cd290a412..f8928704e 100644 --- a/Riot/Modules/Room/Location/RoomTimelineLocationView.swift +++ b/Riot/Modules/Room/Location/RoomTimelineLocationView.swift @@ -80,7 +80,7 @@ class RoomTimelineLocationView: UIView, NibLoadable, Themable, MGLMapViewDelegat private struct Constants { static let mapHeight: CGFloat = 300.0 - static let mapZoomLevel = 15.0 + static let mapZoomLevel = 13.0 static let cellBorderRadius: CGFloat = 1.0 static let cellCornerRadius: CGFloat = 8.0 } diff --git a/Riot/Modules/Room/Location/RoomTimelineLocationView.xib b/Riot/Modules/Room/Location/RoomTimelineLocationView.xib index 37e52c8c1..5a54ff73c 100644 --- a/Riot/Modules/Room/Location/RoomTimelineLocationView.xib +++ b/Riot/Modules/Room/Location/RoomTimelineLocationView.xib @@ -1,9 +1,9 @@ - + - + @@ -30,7 +30,7 @@ -