Android library providing a Hotwire Native bridge component for Google Play Billing via PurchaseKit.
Add JitPack to your project's settings.gradle.kts:
dependencyResolutionManagement {
repositories {
google()
mavenCentral()
maven { url = uri("https://jitpack.io") }
}
}Add the dependency to your app's build.gradle.kts:
dependencies {
implementation("com.github.purchasekit:purchasekit-android:0.1.0")
}Register the bridge component with Hotwire Native:
import dev.purchasekit.android.PaywallComponent
Hotwire.registerBridgeComponents(
BridgeComponentFactory("paywall", ::PaywallComponent)
)
Hotwire.config.jsonConverter = KotlinXJsonConverter()The component automatically acknowledges purchases after a successful transaction. PurchaseKit handles fulfillment via webhooks.
Use the purchasekit gem to add the paywall to your Rails app. The gem handles all communication with the native component automatically.
- Android API 28+
- Kotlin 2.0+
- Hotwire Native Android 1.2.0+
bin/release 1.2.0This bumps the version in purchasekit/src/main/java/dev/purchasekit/android/Version.kt, commits, tags, and pushes. JitPack picks up the new version automatically from the git tag.