commit c33f7aba9af03a9c1c0c946e69d38f34cfe8bc4e
parent cdcfd187dd73d72f80447f5bb77134ddd9246ed8
Author: Marc Stibane <marc@taler.net>
Date: Fri, 7 Jun 2024 21:01:56 +0200
cleanup
Diffstat:
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/TalerWallet.xcodeproj/project.pbxproj b/TalerWallet.xcodeproj/project.pbxproj
@@ -1498,7 +1498,7 @@
SUPPORTS_MACCATALYST = NO;
SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO;
SUPPORTS_XR_DESIGNED_FOR_IPHONE_IPAD = NO;
- SWIFT_ACTIVE_COMPILATION_CONDITIONS = "GNU_TALER PRINT_CHANGES";
+ SWIFT_ACTIVE_COMPILATION_CONDITIONS = GNU_TALER;
SWIFT_EMIT_LOC_STRINGS = YES;
TARGETED_DEVICE_FAMILY = 1;
VALIDATE_WORKSPACE = YES;
@@ -1659,7 +1659,7 @@
SUPPORTS_MACCATALYST = NO;
SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO;
SUPPORTS_XR_DESIGNED_FOR_IPHONE_IPAD = NO;
- SWIFT_ACTIVE_COMPILATION_CONDITIONS = "DEBUG TALER_WALLET";
+ SWIFT_ACTIVE_COMPILATION_CONDITIONS = "DEBUG TALER_WALLET XXXPRINT_CHANGES";
SWIFT_EMIT_LOC_STRINGS = YES;
TARGETED_DEVICE_FAMILY = 1;
VALIDATE_WORKSPACE = YES;
diff --git a/TalerWallet1/Views/Balances/BalancesSectionView.swift b/TalerWallet1/Views/Balances/BalancesSectionView.swift
@@ -105,7 +105,7 @@ extension BalancesSectionView: View {
}
}
if showSpendingButton {
- let title = String(localized: "LinkTitle_DEMOSHOP", defaultValue: "Spend test money")
+ let title = String(localized: "LinkTitle_DEMOSHOP", defaultValue: "Spend demo money")
Button(title) {
showSpendingHint = false
UIApplication.shared.open(URL(string:DEMOSHOP)!, options: [:])
diff --git a/taler-swift/Sources/taler-swift/Amount.swift b/taler-swift/Sources/taler-swift/Amount.swift
@@ -52,7 +52,7 @@ public final class Amount: Codable, Hashable, @unchecked Sendable, CustomStringC
/// The size of `integer` in relation to `fraction`.
static func fractionalBase(_ power: UInt = Amount.fractionalBaseDigits) -> UInt32 {
- var exponent = power < Amount.fractionalBaseDigits
+ let exponent = power < Amount.fractionalBaseDigits
? power : Amount.fractionalBaseDigits
var base: UInt32 = 1
for _ in 0..<exponent { base *= 10 }