Common code
One Purchases.configure call in commonMain covers the Android and iOS targets.
SDK
To add in-app purchases to a Kotlin Multiplatform app, add app.revenuedot.purchases:purchases-kmp-core:3.10.1 to commonMain and call Purchases.configure in common code, with the appl_ key on iOS and the goog_ key on Android. RevenueDot checks each purchase with the App Store or Google Play and keeps each customer's access in sync. RevenueDot Cloud is free until your app makes $10,000 a month.
Free until your app makes $10,000 a month. Switching from RevenueCat? Change one line.
One Purchases.configure call in commonMain covers the Android and iOS targets.
purchases-kmp-core 3.10.1, plus purchases-kmp-ui for paywalls.
Its Android side is RevenueDot's Android SDK 10.22.1, and its iOS side compiles RevenueDot's iOS SDK 5.90.2.
Buy with a test_ key in a debug build before you have App Store or Google Play accounts.
Steps
Start for free on RevenueDot Cloud and add an App Store app and a Google Play app, or a Test Store app for a first run.
Add credentials (App Store, Google Play), then products, an entitlement such as pro (the access your app checks) and a current offering (the products your paywall shows).
Add the Gradle dependency to commonMain, then call Purchases.configure in common code, as in the code below. On Cloud the SDK already points at RevenueDot, so your key is the only setting.
Pass the appl_ key on iOS and the goog_ key on Android to PurchasesConfiguration.
Call awaitPurchase(pkg) and read customerInfo.entitlements.active. It throws PurchasesTransactionException on failure or cancel. See the Test Store to buy without store accounts.
Install
The RevenueDot SDK is built from RevenueCat's open-source SDK (MIT license), so your code imports com.revenuecat.purchases.kmp and calls Purchases. It sends every request to RevenueDot and needs no RevenueCat account.
Self-hosting? Set Purchases.proxyURL, a String, to your server before configure, and keep the default verification mode, DISABLED, because your server signs with its own key. See Trusted Entitlements.
// build.gradle.kts, commonMain
implementation("app.revenuedot.purchases:purchases-kmp-core:3.10.1")
implementation("app.revenuedot.purchases:purchases-kmp-ui:3.10.1") // only for paywalls
// Common code, once at app start
import com.revenuecat.purchases.kmp.Purchases
import com.revenuecat.purchases.kmp.PurchasesConfiguration
fun initPurchases(apiKey: String) { // the appl_ key on iOS, the goog_ key on Android
Purchases.configure(PurchasesConfiguration(apiKey))
} Kotlin
The await helpers live in com.revenuecat.purchases.kmp.ktx.
val customerInfo = Purchases.sharedInstance.awaitCustomerInfo()
val isPro = customerInfo.entitlements.active.containsKey("pro")
val offerings = Purchases.sharedInstance.awaitOfferings()
val pkg = offerings.current?.availablePackages?.firstOrNull() ?: return
val result = Purchases.sharedInstance.awaitPurchase(pkg)
val nowPro = result.customerInfo.entitlements.active.containsKey("pro") Notes
appl_ and goog_ keys.Switch
If your app already ships RevenueCat's purchases-kmp, you can keep it. Set Purchases.proxyURL in common code before configure. Verification is already DISABLED by default. Then call awaitSyncPurchases() once from a coroutine on the first launch of the update, so current subscribers keep access. The full plan is in Migrate from RevenueCat.
purchases-kmp the proxy URL is a String, not a URL as in the native Android SDK.ENFORCED with the stock SDK. RevenueDot cannot sign with RevenueCat's key, so every request would fail.Purchases.proxyURL = "https://api.revenuedot.app"
fun initPurchases(apiKey: String) {
Purchases.configure(PurchasesConfiguration(apiKey) {
// DISABLED is the KMP default; keep it.
verificationMode = EntitlementVerificationMode.DISABLED
})
}
// Once, from a coroutine, on the first launch of this update
Purchases.sharedInstance.awaitSyncPurchases() FAQ
No. The RevenueDot SDK is built from RevenueCat's open-source purchases-kmp under the MIT license, but every request goes to RevenueDot. Create a free RevenueDot Cloud project, copy your app's keys and pass them to PurchasesConfiguration.
Add purchases-kmp-core from Maven Central to commonMain, configure it with a store key per platform, fetch offerings and call awaitPurchase. RevenueDot checks each purchase with the App Store or Google Play and keeps the customer's entitlements in sync.
Yes. One configure call in common code covers both targets. Pass the appl_ key on iOS and the goog_ key on Android. The SDK builds on RevenueDot's native Android and iOS SDKs.
No. purchases-kmp already defaults to EntitlementVerificationMode.DISABLED, which works with RevenueDot Cloud and a self-hosted server.
A String. In the native Android SDK it is a java.net.URL, but purchases-kmp takes a plain String, so a switcher writes Purchases.proxyURL = "https://api.revenuedot.app".
Get started
Building and testing are free, and you can test your first purchase before you have a store account. Pro costs $0 until your apps make $10,000 a month.
Already have an account? Sign in · Switching from RevenueCat? Change one line