* Listen changes via `paymentQueueDidChangeStorefront` method
* Create `StoreKit2StorefrontListener.swift` to listen to Storefront changes for SK2
* Update `PurchasesOrchestrator` to listen to the Storefront changes
* Include `StoreKit2StorefrontListenerTests` in StoreKitTests
Co-authored-by: NachoSoto <NachoSoto@users.noreply.github.com>
* Remove force unwrap
Co-authored-by: NachoSoto <NachoSoto@users.noreply.github.com>
* Add required spaces
Co-authored-by: NachoSoto <NachoSoto@users.noreply.github.com>
* Remove useless cancel method when the listener is released
* Notify Storefront changes in the main thread
* Add cancel task when the Listener is released
Co-authored-by: NachoSoto <NachoSoto@users.noreply.github.com>
Expose `shouldShowPriceConsent` and `showPriceConsentIfNeeded` on PurchasesDelegate. Now you can manually handle showing the price consent if `shouldShowPriceConsent` is set to `false`
Resolved [CF-69]
Also updated some project settings for the APITesters to produce a couple less warnings
Updated PromotionalOfferAPI.Swift to remove a couple warnings