PurchasesApplicationProvider
This class is only used to capture the Application instance and keep a reference to it. The Application instance is used for 2 things:
To call static Purchases methods that need a Context, such as canMakePayments.
To keep track of the current Activity, which is needed to make purchases.
If you need to use RevenueCat in your own Initializer, make sure to add PurchasesApplicationProvider to its dependencies like so:
override fun dependencies(): List<Class<out Initializer<*>>> = listOf(
PurchasesApplicationProvider::class.java
)Content copied to clipboard