This commit is contained in:
2026-04-11 17:09:52 +02:00
parent f5ea1ee23e
commit 7f312ece18
2 changed files with 4 additions and 6 deletions
+2 -2
View File
@@ -272,7 +272,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.1;
MARKETING_VERSION = 1.2;
PRODUCT_BUNDLE_IDENTIFIER = Team.bookstax;
PRODUCT_NAME = "$(TARGET_NAME)";
STRING_CATALOG_GENERATE_SYMBOLS = YES;
@@ -303,7 +303,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.1;
MARKETING_VERSION = 1.2;
PRODUCT_BUNDLE_IDENTIFIER = Team.bookstax;
PRODUCT_NAME = "$(TARGET_NAME)";
STRING_CATALOG_GENERATE_SYMBOLS = YES;
+2 -4
View File
@@ -283,8 +283,6 @@ struct SettingsView: View {
@MainActor
private struct DonationSection: View {
@Environment(\.purchase) private var purchase
private struct Tier: Identifiable {
let id: String
let titleKey: String
@@ -293,7 +291,7 @@ private struct DonationSection: View {
}
private let tiers: [Tier] = [
Tier(id: "donatepage", titleKey: "settings.donate.page", icon: "doc.text.fill", fallbackPrice: "€0.99"),
Tier(id: "doneatepage", titleKey: "settings.donate.page", icon: "doc.text.fill", fallbackPrice: "€0.99"),
Tier(id: "donatebook", titleKey: "settings.donate.book", icon: "book.closed.fill", fallbackPrice: "€4.99"),
Tier(id: "donateencyclopaedia", titleKey: "settings.donate.encyclopedia", icon: "books.vertical.fill", fallbackPrice: "€49.99"),
]
@@ -348,7 +346,7 @@ private struct DonationSection: View {
defer { purchasingID = nil }
guard let product = products[productID] else { return }
do {
let result = try await purchase(product)
let result = try await product.purchase()
if case .success(let verification) = result {
if case .verified(let transaction) = verification {
await transaction.finish()