gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-taler-ios] 35/54: developerMode


From: gnunet
Subject: [taler-taler-ios] 35/54: developerMode
Date: Fri, 30 Jun 2023 22:34:07 +0200

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 74dd08d6c17b9fa23945e7d88be031ebe9deeff9
Author: Marc Stibane <marc@taler.net>
AuthorDate: Wed Jun 28 16:59:46 2023 +0200

    developerMode
---
 TalerWallet1/Controllers/DebugViewC.swift                   | 4 ++++
 TalerWallet1/Views/HelperViews/SelectDays.swift             | 4 ++++
 TalerWallet1/Views/Peer2peer/SendNow.swift                  | 4 ++++
 TalerWallet1/Views/Settings/SettingsView.swift              | 4 ++++
 TalerWallet1/Views/Transactions/TransactionDetailView.swift | 4 ++++
 5 files changed, 20 insertions(+)

diff --git a/TalerWallet1/Controllers/DebugViewC.swift 
b/TalerWallet1/Controllers/DebugViewC.swift
index d5139f6..0d587db 100644
--- a/TalerWallet1/Controllers/DebugViewC.swift
+++ b/TalerWallet1/Controllers/DebugViewC.swift
@@ -127,7 +127,11 @@ struct DebugViewV: View {
 class DebugViewC: ObservableObject {
     private let symLog = SymLogC(0)                         // 0 to switch off 
viewID change logging
     public static let shared = DebugViewC()
+#if DEBUG
+    @AppStorage("developerMode") var developerMode: Bool = true
+#else
     @AppStorage("developerMode") var developerMode: Bool = false
+#endif
     let logger = Logger (subsystem: "net.taler.gnu", category: "DebugView")
 
     @Published var viewID: Int = 0
diff --git a/TalerWallet1/Views/HelperViews/SelectDays.swift 
b/TalerWallet1/Views/HelperViews/SelectDays.swift
index 933af3c..9c982e5 100644
--- a/TalerWallet1/Views/HelperViews/SelectDays.swift
+++ b/TalerWallet1/Views/HelperViews/SelectDays.swift
@@ -9,7 +9,11 @@ import SymLog
 struct SelectDays: View {
     private let symLog = SymLogV(0)
     @Environment(\.isEnabled) private var isEnabled: Bool
+#if DEBUG
+    @AppStorage("developerMode") var developerMode: Bool = true
+#else
     @AppStorage("developerMode") var developerMode: Bool = false
+#endif
 
     @Binding var selected: UInt
     let maxExpiration: UInt
diff --git a/TalerWallet1/Views/Peer2peer/SendNow.swift 
b/TalerWallet1/Views/Peer2peer/SendNow.swift
index f3ffe7e..bc07dbc 100644
--- a/TalerWallet1/Views/Peer2peer/SendNow.swift
+++ b/TalerWallet1/Views/Peer2peer/SendNow.swift
@@ -8,7 +8,11 @@ import SymLog
 
 struct SendNow: View {
     private let symLog = SymLogV()
+#if DEBUG
+    @AppStorage("developerMode") var developerMode: Bool = true
+#else
     @AppStorage("developerMode") var developerMode: Bool = false
+#endif
 
     let amountToSend: Amount?
     let amountToReceive: Amount?
diff --git a/TalerWallet1/Views/Settings/SettingsView.swift 
b/TalerWallet1/Views/Settings/SettingsView.swift
index e299e65..e569daf 100644
--- a/TalerWallet1/Views/Settings/SettingsView.swift
+++ b/TalerWallet1/Views/Settings/SettingsView.swift
@@ -21,7 +21,11 @@ struct SettingsView: View {
     private let symLog = SymLogV(0)
     let navTitle: String
 
+#if DEBUG
+    @AppStorage("developerMode") var developerMode: Bool = true
+#else
     @AppStorage("developerMode") var developerMode: Bool = false
+#endif
     @AppStorage("developDelay") var developDelay: Bool = false
     @AppStorage("myListStyle") var myListStyle: MyListStyle = .automatic
 
diff --git a/TalerWallet1/Views/Transactions/TransactionDetailView.swift 
b/TalerWallet1/Views/Transactions/TransactionDetailView.swift
index 102cfab..68f38d0 100644
--- a/TalerWallet1/Views/Transactions/TransactionDetailView.swift
+++ b/TalerWallet1/Views/Transactions/TransactionDetailView.swift
@@ -24,7 +24,11 @@ extension Transaction {             // for Dummys
 struct TransactionDetailView: View {
     private let symLog = SymLogV()
     @AppStorage("myListStyle") var myListStyle: MyListStyle = .automatic
+#if DEBUG
+    @AppStorage("developerMode") var developerMode: Bool = true
+#else
     @AppStorage("developerMode") var developerMode: Bool = false
+#endif
 
     var transactionId: String
     @State var transaction: Transaction = Transaction(dummyCurrency: 
DEMOCURRENCY)

-- 
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]