diff --git a/bookstax.xcodeproj/project.pbxproj b/bookstax.xcodeproj/project.pbxproj index 71839be..dfd1131 100644 --- a/bookstax.xcodeproj/project.pbxproj +++ b/bookstax.xcodeproj/project.pbxproj @@ -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; diff --git a/bookstax/Views/Settings/SettingsView.swift b/bookstax/Views/Settings/SettingsView.swift index 86035b0..95ca0f8 100644 --- a/bookstax/Views/Settings/SettingsView.swift +++ b/bookstax/Views/Settings/SettingsView.swift @@ -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()