damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | README | LICENSE

commit 7692e2bf7e353145d1ab0bf8c1fbf7b866bd45b7
parent 266b1cc0bdf727ecb5b1f2545a47f991ecf2824d
Author: William Casarin <jb55@jb55.com>
Date:   Wed, 28 Dec 2022 13:57:56 -0800

Fix issue with wallet links opening in app store

Changelog-Fixed: Fix issue with wallet links opening in app store

Diffstat:
Mdamus/Info.plist | 9+++++++++
Mdamus/Util/Constants.swift | 3++-
2 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/damus/Info.plist b/damus/Info.plist @@ -17,7 +17,16 @@ </array> <key>LSApplicationQueriesSchemes</key> <array> + <string>muun</string> + <string>zeusln</string> + <string>zebedee</string> <string>lightning</string> + <string>squarecash</string> + <string>phoenix</string> + <string>lnlink</string> + <string>strike</string> + <string>bluewallet</string> + <string>walletofsatoshi</string> </array> <key>NSAppTransportSecurity</key> <dict> diff --git a/damus/Util/Constants.swift b/damus/Util/Constants.swift @@ -25,6 +25,7 @@ public class Constants { NostrEvent(id: UUID().description, content: "Bonjour Le Monde", pubkey: "3efdaebb1d8923ebd99c9e7ace3b4194ab45512e2be79c1b7d68d9243e0d2681"), ] + // New url prefixes needed to be added to LSApplicationQueriesSchemes static let WALLETS = """ [ {"id": 0, "name": "Strike", "link": "strike:", "appStoreLink": "https://apps.apple.com/us/app/strike-bitcoin-payments/id1488724463", "image": "strike"}, @@ -34,7 +35,7 @@ public class Constants { {"id": 4, "name": "Wallet Of Satoshi", "link": "walletofsatoshi:lightning:", "appStoreLink": "https://apps.apple.com/us/app/wallet-of-satoshi/id1438599608", "image": "walletofsatoshi"}, {"id": 5, "name": "Zebedee", "link": "zebedee:lightning:", "appStoreLink": "https://apps.apple.com/us/app/zebedee-wallet/id1484394401", "image": "zebedee"}, {"id": 6, "name": "Zeus LN", "link": "zeusln:lightning:", "appStoreLink": "https://apps.apple.com/us/app/zeus-ln/id1456038895", "image": "zeusln"}, - {"id": 7, "name": "LNLink", "link": "lnlink://", "appStoreLink": "https://testflight.apple.com/join/aNY4yuuZ", "image": "lnlink"}, + {"id": 7, "name": "LNLink", "link": "lnlink:lightning:", "appStoreLink": "https://testflight.apple.com/join/aNY4yuuZ", "image": "lnlink"}, {"id": 8, "name": "Phoenix", "link": "phoenix://", "appStoreLink": "https://apps.apple.com/us/app/phoenix-wallet/id1544097028", "image": "phoenix"}, ] """.data(using: .utf8)!