Recently Written · git

assistkey

Hardware key remapper for the Viwoods AiPaper Reader: AI key, volume keys and power, with multi-tap, hold and chords

git clone https://github.com/equwal/assistkey

Log | Files | Refs


app/src/fdroid/java/dev/equwal/assistkey/license/PlayBilling.kt (826 bytes)

1 package dev.equwal.assistkey.license
2 
3 import android.app.Activity
4 import android.content.Context
5 
6 /**
7  * The F-Droid build has no Google Play Billing. This object has the same
8  * calls as the real one in src/billing, and each call does nothing.
9  *
10  * The F-Droid build is free and complete, so nothing here is ever needed.
11  */
12 object PlayBilling {
13 
14     enum class Availability { UNKNOWN, READY, UNAVAILABLE }
15 
16     val availability = Availability.UNAVAILABLE
17     val lastProblem: String? = null
18     val purchasePending = false
19     var onChange: (() -> Unit)? = null
20 
21     fun price(productId: String): String? = null
22 
23     fun canBuy(productId: String): Boolean = false
24 
25     fun refresh(c: Context, done: (() -> Unit)? = null) {
26         done?.invoke()
27     }
28 
29     fun buy(activity: Activity, productId: String): Boolean = false
30 }