Fix sponsor not acknowledged

This commit is contained in:
世界
2024-02-11 20:33:12 +08:00
parent 4e4b01b7b9
commit 550e3b690f
3 changed files with 131 additions and 72 deletions

View File

@@ -80,6 +80,8 @@ class MainActivity : AbstractActivity(), ServiceConnection.Callback {
startIntegration()
onNewIntent(intent)
Vendor.initializeBillingClient(this)
}
override fun onNewIntent(intent: Intent) {

View File

@@ -5,5 +5,6 @@ import android.app.Activity
interface VendorInterface {
fun checkUpdateAvailable(): Boolean
fun checkUpdate(activity: Activity, byUser: Boolean)
fun initializeBillingClient(activity: Activity)
fun startSponsor(activity: Activity, fallback: () -> Unit)
}