iap_manager library

Classes

IAPManager<T extends StateFromStore>
Manages in-app purchases. This is essentially a wrapper around the libraries that we are using, hoping to abstract away any issues so that future decisions to swap them should be easy.
IAPPlugin3PWrapper
This is a wrapper around the third party flutter_inapp_purchases plugin. That plugin has lots of static instance variables, which we want to avoid dealing with in test code.
InAppProduct
This represents an in-app product that you are selling.
IOSSubscriptionHelper
Helps validate an iOS subscription as active or inactive. The proper way to do this is using your own server. The Apple documentation warns:
PlatformWrapper
Wrapper around Platform to enable stubbing for testing. Without this, we can't easily use Platform.isAndroid, eg, in classes because it would break on tests where we are typically on macos.
PurchaseVerificationResult
PurchaseVerifier
StateFromStore
An object to expose to the app, which will use this to look at the state of the object and whether or not we need to rebuild / hide ads / etc.

Extensions

IAPManagerUtil

Enums

OwnedState
PurchaseVerificationStatus