Commit Graph
5 Commits
Author SHA1 Message Date
Juanpe CatalánandNachoSoto 3a4093d228 Prepare the codebase to listen to the Storefront changes (1/4) (#1557)
* 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>
2022-05-16 15:51:04 -07:00
NachoSoto fc37a3fad4 Purchases.canMakePayments: moved implementation to StoreKitWrapper (#1580)
Fixes [CF-571]
2022-05-13 10:07:45 -07:00
NachoSoto 63414a6997 ProductRequestData: added Storefront for receipt posting (#1505)
Supersedes #1499.
Fixes [CF-434].
Co-authored-by: Joshua Liebowitz <josh@revenuecat.com>
2022-05-06 08:00:20 -07:00
Joshua Liebowitz ffadd011d3 Expose shouldShowPriceConsent on PurchasesDelegate (#1520)
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
2022-04-26 14:08:12 -07:00
aboedo f5697de730 renamed Purchases folder to Sources (#1416)
* renamed `Purchases` folder to `Sources`

* temporarily enabling installation test jobs

* re-disabling installation test jobs
2022-03-28 11:53:24 -03:00