taler-ios

iOS apps for GNU Taler (wallet)
Log | Files | Refs | README | LICENSE

commit b973fa12ff64f1946f06644ee7384bc2419089d3
parent 09abda13157bbef53893d49dd0afecdd4ddd6ace
Author: Marc Stibane <marc@taler.net>
Date:   Thu,  6 Aug 2026 22:17:16 +0200

cleanup

Diffstat:
MTalerWallet1/Backend/WalletCore.swift | 3++-
MTalerWallet1/Model/Model+Withdraw.swift | 6+++---
MTalerWallet1/Views/Actions/Banking/DepositAmountView.swift | 2+-
MTalerWallet1/Views/HelperViews/Buttons.swift | 1-
MTalerWallet1/Views/HelperViews/CopyShare.swift | 1-
MTalerWallet1/Views/HelperViews/GradientBorder.swift | 2+-
MTalerWallet1/Views/Settings/DebugSettingsView.swift | 2++
7 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/TalerWallet1/Backend/WalletCore.swift b/TalerWallet1/Backend/WalletCore.swift @@ -236,7 +236,8 @@ extension WalletCore { logger.log("❗️ \(pendingOp, privacy: .public): \(id, privacy: .public)") // this is a new pendingOp I haven't seen before } } - @MainActor private func handleStateTransition(_ jsonData: Data) throws { + @MainActor + private func handleStateTransition(_ jsonData: Data) throws { do { let decoded = try JSONDecoder().decode(TransactionTransition.self, from: jsonData) if let errorInfo = decoded.errorInfo { diff --git a/TalerWallet1/Model/Model+Withdraw.swift b/TalerWallet1/Model/Model+Withdraw.swift @@ -40,9 +40,9 @@ struct QrCodeSpec: Codable, Hashable { struct TransferOption: Codable, Hashable { var type: TransferType var uri: String? // only if type == uri - var paytoUri: String? // only if type == payto - var qrReferenceNumber: String? - var qrCodes: [QrCodeSpec]? + var paytoUri: String? // not if type == uri + var qrCodes: [QrCodeSpec]? // not if type == uri + var qrReferenceNumber: String? // only if type == chQrBill } struct ExchangeAccountDetails: Decodable, Hashable { diff --git a/TalerWallet1/Views/Actions/Banking/DepositAmountView.swift b/TalerWallet1/Views/Actions/Banking/DepositAmountView.swift @@ -171,9 +171,9 @@ struct DepositAmountView: View { comment: "a11y") Button(buttonTitle(amountToTransfer)) { startDeposit(balance.scopeInfo) } // TODO: use exchange scope .buttonStyle(TalerButtonStyle(type: .prominent, disabled: disabled || depositStarted)) - .padding(.horizontal) .disabled(disabled || depositStarted) .accessibilityHint(disabled ? hint : EMPTYSTRING) + .padding(.horizontal) } else { // no balance - Yikes Text("No balance. There seems to be a problem with the database...") } diff --git a/TalerWallet1/Views/HelperViews/Buttons.swift b/TalerWallet1/Views/HelperViews/Buttons.swift @@ -148,7 +148,6 @@ struct DoneButton : View { Button(action: action) { if let titleStr { Text(titleStr) -// .tint(WalletColors().primaryAccent) } else { Image(systemName: CHECKMARK) // 􀆅 } diff --git a/TalerWallet1/Views/HelperViews/CopyShare.swift b/TalerWallet1/Views/HelperViews/CopyShare.swift @@ -204,7 +204,6 @@ struct ShareButton: View { withAnimation(.easeOut(duration: 0.25)) { scale = 1.15 } -// ShareSheet.shareSheet(textToShare: textToShare, image: image) dismissAndPost() } // Finally settle to normal diff --git a/TalerWallet1/Views/HelperViews/GradientBorder.swift b/TalerWallet1/Views/HelperViews/GradientBorder.swift @@ -178,7 +178,7 @@ struct BorderWithNFC<Content: View>: View { } } - if true { // TODO: check for write capabilities + if true { // We always have NFC write capabilities VStack { if let automaticNfc, automaticNfc, !didWriteTOTP { Text("\(nfcLogo) Point your iPhone to the NFC device") diff --git a/TalerWallet1/Views/Settings/DebugSettingsView.swift b/TalerWallet1/Views/Settings/DebugSettingsView.swift @@ -265,6 +265,7 @@ struct DebugSettingsView: View { .buttonStyle(.bordered) .disabled(checkDisabled) }.id("runInfiniteLoop") +#if false SettingsItem(name: String("Save Logfile"), id1: "save", description: String("Help debugging wallet-core")) { Button("Save") { @@ -274,6 +275,7 @@ struct DebugSettingsView: View { .buttonStyle(.bordered) .disabled(true) }.id("saveLog") +#endif SettingsItem(name: String("Reset Wallet"), id1: "reset", description: String("Throw away all your money")) { Button("Reset") {