File tree Expand file tree Collapse file tree 4 files changed +16
-4
lines changed Expand file tree Collapse file tree 4 files changed +16
-4
lines changed Original file line number Diff line number Diff line change 1
1
Pod ::Spec . new do |s |
2
2
s . name = 'ApphudSDK'
3
- s . version = '3.3.7 '
3
+ s . version = '3.3.8 '
4
4
s . summary = 'Build and Measure In-App Subscriptions on iOS.'
5
5
s . description = 'Apphud covers every aspect when it comes to In-App Subscriptions from integration to analytics on iOS and Android.'
6
6
s . homepage = 'https://github.com/apphud/ApphudSDK'
Original file line number Diff line number Diff line change @@ -48,7 +48,12 @@ extension ApphudInternal {
48
48
}
49
49
50
50
internal func fetchAllAvailableProductIDs( ) async -> Set < String > {
51
- await withCheckedContinuation ( { continuation in
51
+
52
+ if await permissionGroups == nil {
53
+ _ = await fetchPermissionGroups ( )
54
+ }
55
+
56
+ return await withCheckedContinuation( { continuation in
52
57
performWhenUserRegistered ( allowFailure: true ) { @MainActor in
53
58
continuation. resume ( returning: self . allAvailableProductIDs ( ) )
54
59
}
Original file line number Diff line number Diff line change @@ -329,7 +329,13 @@ extension ApphudInternal {
329
329
}
330
330
}
331
331
#endif
332
-
332
+
333
+ if let transactionId = params [ " transaction_id " ] as? String , let trInt = UInt64 ( transactionId) {
334
+ var trx = self . lastUploadedTransactions
335
+ trx. append ( trInt)
336
+ self . lastUploadedTransactions = trx
337
+ }
338
+
333
339
self . requiresReceiptSubmission = true
334
340
335
341
apphudLog ( " Uploading App Store Receipt... " )
@@ -367,6 +373,7 @@ extension ApphudInternal {
367
373
self . notifyAboutUpdates ( hasChanges)
368
374
}
369
375
} else {
376
+ self . lastUploadedTransactions = [ ]
370
377
self . scheduleSubmitReceiptRetry ( error: error, code: errorCode)
371
378
}
372
379
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ import Foundation
14
14
import UserNotifications
15
15
import SwiftUI
16
16
17
- internal let apphud_sdk_version = " 3.3.7 "
17
+ internal let apphud_sdk_version = " 3.3.8 "
18
18
19
19
// MARK: - Initialization
20
20
You can’t perform that action at this time.
0 commit comments