[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-taler-ios] 03/07: added ext+taler and web+taler to the list of re
From: |
gnunet |
Subject: |
[taler-taler-ios] 03/07: added ext+taler and web+taler to the list of recognized URL schemes |
Date: |
Wed, 22 Feb 2023 16:16:30 +0100 |
This is an automated email from the git hooks/post-receive script.
marc-stibane pushed a commit to branch master
in repository taler-ios.
commit 744d32a9de9da0ec89a9e5ef93d2963b7f4a8a2f
Author: Marc Stibane <marc@taler.net>
AuthorDate: Fri Feb 17 10:11:03 2023 +0100
added ext+taler and web+taler to the list of recognized URL schemes
---
Info.plist | 2 ++
TalerWallet1/Controllers/Controller.swift | 2 +-
TalerWallet1/Controllers/TalerWallet1App.swift | 7 ++-----
3 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/Info.plist b/Info.plist
index b918fac..18225d6 100644
--- a/Info.plist
+++ b/Info.plist
@@ -12,6 +12,8 @@
<key>CFBundleURLSchemes</key>
<array>
<string>taler</string>
+ <string>ext+taler</string>
+ <string>web+taler</string>
<string>payto</string>
</array>
</dict>
diff --git a/TalerWallet1/Controllers/Controller.swift
b/TalerWallet1/Controllers/Controller.swift
index 513472a..8e10ec6 100644
--- a/TalerWallet1/Controllers/Controller.swift
+++ b/TalerWallet1/Controllers/Controller.swift
@@ -89,7 +89,7 @@ extension Controller {
case "taler+http":
uncrypted = true
fallthrough
- case "taler":
+ case "taler", "ext+taler", "web+taler":
return talerScheme(url, uncrypted)
case "payto":
messageForSheet = url.absoluteString
diff --git a/TalerWallet1/Controllers/TalerWallet1App.swift
b/TalerWallet1/Controllers/TalerWallet1App.swift
index 3128077..1eac830 100644
--- a/TalerWallet1/Controllers/TalerWallet1App.swift
+++ b/TalerWallet1/Controllers/TalerWallet1App.swift
@@ -16,11 +16,6 @@
import BackgroundTasks
import SwiftUI
import SymLog
-#if DEBUG
-let schemes: Set = ["taler", "payto", "taler+http"]
-#else
-let schemes: Set = ["taler", "payto"]
-#endif
@main
struct TalerWallet1App: App {
@@ -40,6 +35,8 @@ struct TalerWallet1App: App {
WindowGroup {
symLog { ContentView()
.environmentObject(controller)
+ /// external events are taler:// or payto:// URLs
passed to this app
+ /// we handle them in .onOpenURL in ContentView.swift
.handlesExternalEvents(preferring: ["*"], allowing: ["*"])
.task {
symLog.log("task -> initWalletCore")
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [taler-taler-ios] branch master updated (df4fe35 -> 4f2b20c), gnunet, 2023/02/22
- [taler-taler-ios] 01/07: Error handling, Amount.diff, gnunet, 2023/02/22
- [taler-taler-ios] 04/07: Constants, cleanup, gnunet, 2023/02/22
- [taler-taler-ios] 03/07: added ext+taler and web+taler to the list of recognized URL schemes,
gnunet <=
- [taler-taler-ios] 06/07: Info & SceneConfigurations, v0.9.2, bundleID, gnunet, 2023/02/22
- [taler-taler-ios] 02/07: ported remaining sync wallet-core funcs to try await, gnunet, 2023/02/22
- [taler-taler-ios] 05/07: Transaction definition and JSON decoding - Bug 7678, gnunet, 2023/02/22
- [taler-taler-ios] 07/07: Transaction list and details, gnunet, 2023/02/22