-
Notifications
You must be signed in to change notification settings - Fork 797
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix/fetch product concurrency #495
Fix/fetch product concurrency #495
Conversation
updated. |
I have some trouble making the test work with the CI. Do you know how to fix this? |
@@ -44,18 +44,29 @@ class ProductsInfoController: NSObject { | |||
} | |||
|
|||
let inAppProductRequestBuilder: InAppProductRequestBuilder | |||
|
|||
private var spinLock: OSSpinLock |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm under the impression that OSSpinLock
is deprecated in favor of os_unfair_lock
. Is there a reason you use this here but not in tests and vice versa?
I am getting crashes while fetching the promotional code discount price details (localizedPrice and priceLocale.currencyCode) in iOS 12.5 and 13.5 but iOS 14 is working fine . Price is coming fine but while trying to fetch localizedPrice or priceLocale.currencyCode app getting crash I am using the latest version of SwiftyStoreKit(0.16.4) My Xcode version is 13.1 static func getProductOfferDetails(_ productDiscount: SKProductDiscount?) -> InAppProductDiscount? {
|
This PR Fixes #344 (outside of the main thread) and fixes #468.