Android In-App Billing SDK for Cafe Bazaar App Store.
To start working with Poolakey, you need to add its dependency into your build.gradle
file:
dependencies {
implementation "com.github.cafebazaar.Poolakey:poolakey:[latest_version]"
}
Then you need to add jitpack as your maven repository in build.gradle
file:
repositories {
google()
jcenter()
maven { url 'https://jitpack.io' }
}
For more information regarding the usage of Poolakey, please check out the wiki page.
There is a fully functional sample application that demonstrates the usage of Poolakey, all you have to do is cloning the project and running the app module.
Yes, you've read that right! Poolakey supports Reactive Extension framework. Just add its dependency into your build.gradle
file:
dependencies {
// RxJava 3
implementation "com.github.cafebazaar.Poolakey:poolakey-rx3:[latest_version]"
// RxJava 2
implementation "com.github.cafebazaar.Poolakey:poolakey-rx:[latest_version]"
}
And instead of using Poolakey's callbacks, use the reactive fuctions:
payment.getPurchasedProducts()
.subscribe({ purchasedProducts ->
...
}, { throwable ->
...
})