Render location events in the timeline (#1136)

* Start location integration in the timeline

* Add warning

* Add LocationRoomTimelineView

* Add GeoURI

* Refine LocationRoomTimelineView

* Refine LocationRoomTimelineView

* Add LocationRoomTimelineView previews

* Cleanup code

* Mock reply

* Add FF for location events

* Update project file

* Fix MapLibreStaticMapView placeholder

* Add MapTilerAttribution

* Add LocationPinView

* Fix layout

* Start reply rendering

* Refactor ReplyView.Icon

* Add localisations

* Fix reactions

* Amend GeoURI regex

* Add log

* Fix tests

* Attribution placement refactor

* Cleanup

* Replace NSRegularExpression with a regex

* Cleanup

* Update unit tests

* isMediaType -> shouldFillBubble
This commit is contained in:
Alfonso Grillo
2023-06-23 12:49:35 +02:00
committed by GitHub
parent 40fab35dd7
commit 07a6235fac
27 changed files with 886 additions and 65 deletions
+1
View File
@@ -38,6 +38,7 @@ internal enum Asset {
internal static let launchLogo = ImageAsset(name: "Images/LaunchLogo")
internal static let appLogo = ImageAsset(name: "Images/app-logo")
internal static let closeCircle = ImageAsset(name: "Images/close_circle")
internal static let locationPin = ImageAsset(name: "Images/location-pin")
internal static let timelineComposerSendMessage = ImageAsset(name: "Images/timelineComposerSendMessage")
}
}
+2
View File
@@ -238,6 +238,8 @@ public enum L10n {
public static var commonServerUrl: String { return L10n.tr("Localizable", "common_server_url") }
/// Settings
public static var commonSettings: String { return L10n.tr("Localizable", "common_settings") }
/// Shared location
public static var commonSharedLocation: String { return L10n.tr("Localizable", "common_shared_location") }
/// Starting chat…
public static var commonStartingChat: String { return L10n.tr("Localizable", "common_starting_chat") }
/// Sticker