0.2.0
This release breaks up the StoreService
protocol into multiple protocols.
This is done to simplify implementing custom services, mocking in unit tests etc.
✨ Features
StandardProductService
is a new service that takes care of fetching products.StandardPurchaseService
is a new service that takes care of purchasing products and restoring purchases.StoreService
has been split up into three protocols:StoreProductService
,StorePurchaseService
andStoreSyncService
.StoreContext
has a newproduct(withId:)
function.
💡 Behavior changes
StoreService
now inheritsStoreProductService
,StorePurchaseService
andStoreSyncService
.StandardStoreService
now implementsStoreProductService
,StorePurchaseService
andStoreSyncService
.StandardStoreService
now uses nested service implementations to make its own logic easier to overview.