[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-taler-ios] 13/16: Preparation for Builtin
From: |
gnunet |
Subject: |
[taler-taler-ios] 13/16: Preparation for Builtin |
Date: |
Thu, 29 Feb 2024 17:19:20 +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 23f77fbf033b6de93e2a017caf18acce326c1879
Author: Marc Stibane <marc@taler.net>
AuthorDate: Thu Feb 29 14:44:09 2024 +0100
Preparation for Builtin
---
TalerWallet1/Backend/WalletCore.swift | 2 +-
TalerWallet1/Model/WalletModel.swift | 7 +++++++
TalerWallet1/Views/Transactions/ThreeAmountsV.swift | 1 +
3 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/TalerWallet1/Backend/WalletCore.swift
b/TalerWallet1/Backend/WalletCore.swift
index 7467fac..6e50295 100644
--- a/TalerWallet1/Backend/WalletCore.swift
+++ b/TalerWallet1/Backend/WalletCore.swift
@@ -112,7 +112,7 @@ extension WalletCore {
// TODO: show error alert
completion(requestId, timeSent, nil,
WalletCore.parseFailureError())
}
- } else { // JSON decoding of
error message failed
+ } else { // JSON decoding of error message failed
completion(requestId, timeSent, nil,
WalletCore.parseFailureError())
}
}
diff --git a/TalerWallet1/Model/WalletModel.swift
b/TalerWallet1/Model/WalletModel.swift
index 86cf4e6..49ee759 100644
--- a/TalerWallet1/Model/WalletModel.swift
+++ b/TalerWallet1/Model/WalletModel.swift
@@ -92,6 +92,8 @@ fileprivate struct InitRequest: WalletBackendFormattedRequest
{
func operation() -> String { "init" }
func args() -> Args {
let testing = Testing(devModeActive: false) // true, false
+ let builtin = Builtin(exchanges: [])
+// let config = Config(testing: testing, builtin: builtin)
let config = Config(testing: testing)
return Args(persistentStoragePath: persistentStoragePath,
// cryptoWorkerType: "sync",
@@ -106,8 +108,13 @@ fileprivate struct InitRequest:
WalletBackendFormattedRequest {
var devModeActive: Bool
// more to come...
}
+ struct Builtin: Encodable {
+ var exchanges: [String]
+ // more to come...
+ }
struct Config: Encodable {
var testing: Testing
+// var builtin: Builtin
}
struct Args: Encodable {
var persistentStoragePath: String
diff --git a/TalerWallet1/Views/Transactions/ThreeAmountsV.swift
b/TalerWallet1/Views/Transactions/ThreeAmountsV.swift
index c7fbbf1..6e61e21 100644
--- a/TalerWallet1/Views/Transactions/ThreeAmountsV.swift
+++ b/TalerWallet1/Views/Transactions/ThreeAmountsV.swift
@@ -110,6 +110,7 @@ struct ThreeAmountsV: View {
}
if let baseURL {
VStack(alignment: .leading) {
+ // TODO: "Issued by" for withdrawals
Text(minimalistic ? "Payment provider:" : "Using payment
service provider:")
.multilineTextAlignment(.leading)
.talerFont(.body)
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [taler-taler-ios] branch master updated (8475ec0 -> 9453c61), gnunet, 2024/02/29
- [taler-taler-ios] 07/16: Error, Status, gnunet, 2024/02/29
- [taler-taler-ios] 13/16: Preparation for Builtin,
gnunet <=
- [taler-taler-ios] 06/16: ViewIDs, gnunet, 2024/02/29
- [taler-taler-ios] 04/16: fix JSON keys for ExchangeUpdateStatus, gnunet, 2024/02/29
- [taler-taler-ios] 08/16: Use HTTP lib of quickjs-tart, still with curl, gnunet, 2024/02/29
- [taler-taler-ios] 10/16: Debugging, gnunet, 2024/02/29
- [taler-taler-ios] 03/16: fake Swiss Francs, gnunet, 2024/02/29
- [taler-taler-ios] 09/16: Helpers, gnunet, 2024/02/29
- [taler-taler-ios] 16/16: Bump version to 0.9.4 (11), gnunet, 2024/02/29
- [taler-taler-ios] 15/16: Empty Wallet, gnunet, 2024/02/29
- [taler-taler-ios] 12/16: Bump version to 0.9.4 (10), gnunet, 2024/02/29
- [taler-taler-ios] 11/16: Native Networking via URLSession.dataTask, gnunet, 2024/02/29