Use this skill to add and configure RevenueCat (
) in an Android app. A single
call replaces
setup, connection lifecycle management, reconnection handling, and launch-time purchase queries.
Work through the phases in order. The
full chapter on revenuecat.com has the complete reference text.
Find out whether RevenueCat is already wired up and where billing code currently lives.
-
Search for an existing configure call and prior SDK version.
bash
rg -n "Purchases\.configure|PurchasesConfiguration" --type kotlin --type java
rg -n "com\.revenuecat\.purchases" -g '*.gradle*' -g '*.toml'
-
Search for the existing billing surface you may be replacing.
bash
rg -n "BillingClient|PurchasesUpdatedListener|startConnection" --type kotlin --type java
-
Record answers before moving on.
If
already runs, stop and confirm with the user before changing it. Configuration runs once per process.
Decide three things before writing code.
Call
exactly once per process. Calling it from an
risks re-running it on configuration changes if you are not careful; the
path avoids that.
Do not pass device ids, email addresses, or values that can change. If you do not have the id at startup, configure anonymously and call
after authentication.
Switch on
so production builds stay quiet.
Replace
with the current published version. If the project uses a Groovy
, use
implementation 'com.revenuecat.purchases:purchases:<latest>'
. Sync Gradle after the change.
Register the class in
with
on
. Keep the public Android SDK key out of source; inject it through
or a secret manager.
From any coroutine scope after
has run:
A non-null
identifier means the API key, package name, and network path are working. If you see
, check the dashboard offering setup and the package name match before touching code.