Skip to content

0.2.0

Compare
Choose a tag to compare
@danielsaidi danielsaidi released this 29 Aug 15:13
· 40 commits to main since this release

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 and StoreSyncService.
  • StoreContext has a new product(withId:) function.

💡 Behavior changes

  • StoreService now inherits StoreProductService, StorePurchaseService and StoreSyncService.
  • StandardStoreService now implements StoreProductService, StorePurchaseService and StoreSyncService.
  • StandardStoreService now uses nested service implementations to make its own logic easier to overview.