Skip to content

Commit edad687

Browse files
authored
Fix consumable bug (#128)
1 parent 877260e commit edad687

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

ApphudSDK.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'ApphudSDK'
3-
s.version = '3.5.7'
3+
s.version = '3.5.8'
44
s.summary = 'Build and Measure In-App Subscriptions on iOS.'
55
s.description = 'Apphud covers every aspect when it comes to In-App Subscriptions from integration to analytics on iOS and Android.'
66
s.homepage = 'https://github.com/apphud/ApphudSDK'

Sources/Internal/ApphudAsyncStoreKit.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,8 @@ final class ApphudAsyncTransactionObserver {
196196
apphudLog("Received transaction [\(transaction.id), \(transaction.productID)] from StoreKit2")
197197
Task { @MainActor in
198198
try? await ApphudAsyncStoreKit.shared.fetchProductIfNeeded(transaction.productID)
199+
await ApphudInternal.shared.handleTransaction(transaction)
199200
}
200-
ApphudInternal.shared.setNeedToCheckTransactions()
201201
}
202202
}
203203
}

Sources/Internal/ApphudInternal+Purchase.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ extension ApphudInternal {
4141

4242
@MainActor @objc private func checkTransactionsNow() {
4343

44-
if Apphud.hasPremiumAccess() || ApphudStoreKitWrapper.shared.isPurchasing {
44+
if ApphudStoreKitWrapper.shared.isPurchasing {
4545
return
4646
}
4747

Sources/Public/Apphud.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import Foundation
1414
import UserNotifications
1515
import SwiftUI
1616

17-
internal let apphud_sdk_version = "3.5.7"
17+
internal let apphud_sdk_version = "3.5.8"
1818

1919
// MARK: - Initialization
2020

0 commit comments

Comments
 (0)