StoreKitPlus adds extra functionality for working with StoreKit 2, like extensions, observable state, services, etc.
StoreKitPlus has an observable StoreContext
that lets you observe store state, a StoreService
protocol and a StandardStoreService
implementation that simplifies fetching, purchasing and syncing products, as well as a ProductRepresentable
protocol that lets you use local product representations in your app.
StoreKitPlus supports iOS 15
, macOS 12
, tvOS 15
and watchOS 8
.
The best way to add StoreKitPlus to your app is to use the Swift Package Manager.
https://github.com/danielsaidi/StoreKitPlus.git
StoreKitPlus also supports CocoaPods:
pod StoreKitPlus
You can also clone the repository and build the library locally.
The online documentation has a guide to get started with StoreKitPlus.
The online documentation contains more information, code examples etc. and makes it easy to overview the various parts of the library.
The online documentation is currently iOS only. To generate documentation for other platforms, open the package in Xcode, select a simulator then run Product/Build Documentation
.
This project currently has no demo app, since registering and testing real products requires setting up App Store Connect with your products.
Just let me know if you'd like a demo app, and I'll see if I can create an app that has a local StoreKit file and doesn't have to sync with App Store Connect.
You can sponsor this project on GitHub Sponsors or get in touch for paid support.
Feel free to reach out if you have questions or if you want to contribute in any way:
StoreKitPlus is available under the MIT license. See LICENSE file for more info.
link |
Stars: 15 |
Last commit: 1 week ago |
This is a first beta release of StoreKitPlus.
This version introduces a bunch of types that makes it easier to work with StoreKit in an abstract, protocol-driven way.
StoreContext
is a new, observable type.StoreService
is a new protocol for comunicating with StoreKit.StandardStoreService
is a new class for comunicating with StoreKit.ProductRepresentable
is a new protocol for providing local products.ValidatableTransaction
is a new protocol for transaction validation.Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics