gnunet-svn
[Top][All Lists]
Advanced

[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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]