Skip to content

Commit

Permalink
feat: add Organic Maps app to the open in options
Browse files Browse the repository at this point in the history
  • Loading branch information
kirylkaveryn committed Jul 1, 2024
1 parent a568e2d commit b2b1e05
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions Telegram/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -1783,6 +1783,7 @@ plist_fragment(
<string>yandexmaps</string>
<string>yandexnavi</string>
<string>comgooglemaps</string>
<string>om</string>
<string>youtube</string>
<string>twitter</string>
<string>vk</string>
Expand Down
6 changes: 5 additions & 1 deletion submodules/OpenInExternalAppUI/Sources/OpenInOptions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,11 @@ private func allOpenInOptions(context: AccountContext, item: OpenInItem) -> [Ope
return .openUrl(url: "yandexmaps://maps.yandex.ru/?pt=\(lon),\(lat)&z=16")
}
}))


options.append(OpenInOption(identifier: "organicMaps", application: .other(title: "Organic Maps", identifier: 1567437057, scheme: "om", store: nil), action: {
return .openUrl(url: "om://map?v=1&ll=\(lat),\(lon)")
}))

options.append(OpenInOption(identifier: "uber", application: .other(title: "Uber", identifier: 368677368, scheme: "uber", store: nil), action: {
let dropoffName: String
let dropoffAddress: String
Expand Down

0 comments on commit b2b1e05

Please sign in to comment.