A kotlin coroutine based solution for handling in app purchases.
- exception save, each functions returns a non null sealed class / interface instance
- simple query function to query a product state: `val result = KotBilling.queryProducts(... products ...)
- simple purchase function to buy a product and acknowledge/consume it: `val result = KotBilling.purchase(actvity, product, offerToken)
- Add jitpack to your project's build.gradle:
repositories {
maven { url "https://jitpack.io" }
}
- Add the compile statement to your module's build.gradle:
dependencies {
implementation 'com.github.MFlisar:KotBilling:<LAST VERSION>'
}
For a full example, check out the demo app