Browse Source

Add Blixt & River to Wallet Selector

Changelog-Added: Add Blixt Wallet to Wallet Selector
Changelog-Added: Add River Wallet to Wallet Selector
Closes: #206
post-button-style
Benjamin Hakes 2 years ago
committed by William Casarin
parent
commit
707f31fca1
  1. 21
      damus/Assets.xcassets/blixt-wallet.imageset/Contents.json
  2. BIN
      damus/Assets.xcassets/blixt-wallet.imageset/blixt-wallet.png
  3. 21
      damus/Assets.xcassets/river.imageset/Contents.json
  4. BIN
      damus/Assets.xcassets/river.imageset/river.png
  5. 2
      damus/Info.plist
  6. 9
      damus/Models/Wallet.swift

21
damus/Assets.xcassets/blixt-wallet.imageset/Contents.json

@ -0,0 +1,21 @@
{
"images" : [
{
"filename" : "blixt-wallet.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

BIN
damus/Assets.xcassets/blixt-wallet.imageset/blixt-wallet.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 215 KiB

21
damus/Assets.xcassets/river.imageset/Contents.json

@ -0,0 +1,21 @@
{
"images" : [
{
"filename" : "river.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

BIN
damus/Assets.xcassets/river.imageset/river.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

2
damus/Info.plist

@ -17,6 +17,7 @@
</array>
<key>LSApplicationQueriesSchemes</key>
<array>
<string>river</string>
<string>bitcoinbeach</string>
<string>breez</string>
<string>muun</string>
@ -29,6 +30,7 @@
<string>strike</string>
<string>bluewallet</string>
<string>walletofsatoshi</string>
<string>blixtwallet</string>
</array>
<key>NSAppTransportSecurity</key>
<dict>

9
damus/Models/Wallet.swift

@ -33,6 +33,8 @@ enum Wallet: String, CaseIterable, Identifiable {
case phoenix
case breez
case bitcoinbeach
case blixtwallet
case river
var model: Model {
switch self {
@ -71,6 +73,13 @@ enum Wallet: String, CaseIterable, Identifiable {
case .bitcoinbeach:
return .init(index: 10, tag: "bitcoinbeach", displayName: NSLocalizedString("Bitcoin Beach", comment: "Dropdown option label for Lightning wallet, Bitcoin Beach."), link: "bitcoinbeach://",
appStoreLink: "https://apps.apple.com/sv/app/bitcoin-beach-wallet/id1531383905", image: "bbw")
case .blixtwallet:
return .init(index: 11, tag: "blixtwallet", displayName: NSLocalizedString("Blixt Wallet", comment: "Dropdown option label for Lightning wallet, Blixt Wallet"), link: "blixtwallet:lightning:",
appStoreLink: "null", image: "blixt-wallet")
case .river:
return .init(index: 12, tag: "river", displayName: NSLocalizedString("River", comment: "Dropdown option label for Lightning wallet, River"), link: "river://",
appStoreLink: "https://apps.apple.com/us/app/river-buy-mine-bitcoin/id1536176542", image: "river")
}
}

Loading…
Cancel
Save