Purchases for Android is available on Maven and can be included via Gradle.
implementation 'com.android.billingclient:billing:1.0' implementation 'com.revenuecat.purchases:purchases:1.4.0'
Google's Billing library must be included as a dependency.
You should now be able in import
import com.android.billingclient.api.SkuDetails; import com.revenuecat.purchases.Entitlement; import com.revenuecat.purchases.Offering; import com.revenuecat.purchases.PurchaserInfo; import com.revenuecat.purchases.Purchases;
- Now that you've installed the Purchases SDK in your Android app, get started by initializing an instance of Purchases