Skip to content

Commit

Permalink
Fix consumable bug (#128)
Browse files Browse the repository at this point in the history
  • Loading branch information
ren6 authored Jan 13, 2025
1 parent 877260e commit edad687
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ApphudSDK.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'ApphudSDK'
s.version = '3.5.7'
s.version = '3.5.8'
s.summary = 'Build and Measure In-App Subscriptions on iOS.'
s.description = 'Apphud covers every aspect when it comes to In-App Subscriptions from integration to analytics on iOS and Android.'
s.homepage = 'https://github.com/apphud/ApphudSDK'
Expand Down
2 changes: 1 addition & 1 deletion Sources/Internal/ApphudAsyncStoreKit.swift
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,8 @@ final class ApphudAsyncTransactionObserver {
apphudLog("Received transaction [\(transaction.id), \(transaction.productID)] from StoreKit2")
Task { @MainActor in
try? await ApphudAsyncStoreKit.shared.fetchProductIfNeeded(transaction.productID)
await ApphudInternal.shared.handleTransaction(transaction)
}
ApphudInternal.shared.setNeedToCheckTransactions()
}
}
}
2 changes: 1 addition & 1 deletion Sources/Internal/ApphudInternal+Purchase.swift
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ extension ApphudInternal {

@MainActor @objc private func checkTransactionsNow() {

if Apphud.hasPremiumAccess() || ApphudStoreKitWrapper.shared.isPurchasing {
if ApphudStoreKitWrapper.shared.isPurchasing {
return
}

Expand Down
2 changes: 1 addition & 1 deletion Sources/Public/Apphud.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import Foundation
import UserNotifications
import SwiftUI

internal let apphud_sdk_version = "3.5.7"
internal let apphud_sdk_version = "3.5.8"

// MARK: - Initialization

Expand Down

0 comments on commit edad687

Please sign in to comment.