commit 744d32a9de9da0ec89a9e5ef93d2963b7f4a8a2f
parent 3cb19f272b49399fd5283c0da6a5896e85ec220e
Author: Marc Stibane <marc@taler.net>
Date: Fri, 17 Feb 2023 10:11:03 +0100
added ext+taler and web+taler to the list of recognized URL schemes
Diffstat:
3 files changed, 5 insertions(+), 6 deletions(-)
diff --git 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
@@ -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
@@ -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")