fixup! Update dependencies
Signed-off-by: William Brawner <me@wbrawner.com>
This commit is contained in:
parent
d538111651
commit
c3821fbfc9
1 changed files with 4 additions and 4 deletions
|
@ -67,8 +67,8 @@ class SupportActivity : AppCompatActivity(), BillingClientStateListener, Purchas
|
|||
return super.onOptionsItemSelected(item)
|
||||
}
|
||||
|
||||
override fun onBillingSetupFinished(result: BillingResult?) {
|
||||
if (result?.responseCode != BillingClient.BillingResponseCode.OK) {
|
||||
override fun onBillingSetupFinished(result: BillingResult) {
|
||||
if (result.responseCode != BillingClient.BillingResponseCode.OK) {
|
||||
return
|
||||
}
|
||||
|
||||
|
@ -78,7 +78,7 @@ class SupportActivity : AppCompatActivity(), BillingClientStateListener, Purchas
|
|||
.build()
|
||||
billingClient.querySkuDetailsAsync(skuDetails) { skuDetailsResponse, skuDetailsList ->
|
||||
// Process the result.
|
||||
if (skuDetailsResponse?.responseCode != BillingClient.BillingResponseCode.OK || skuDetailsList.isNullOrEmpty()) {
|
||||
if (skuDetailsResponse.responseCode != BillingClient.BillingResponseCode.OK || skuDetailsList.isNullOrEmpty()) {
|
||||
return@querySkuDetailsAsync
|
||||
}
|
||||
|
||||
|
@ -104,7 +104,7 @@ class SupportActivity : AppCompatActivity(), BillingClientStateListener, Purchas
|
|||
billingClient.startConnection(this)
|
||||
}
|
||||
|
||||
override fun onPurchasesUpdated(result: BillingResult?, purchases: MutableList<Purchase>?) {
|
||||
override fun onPurchasesUpdated(result: BillingResult, purchases: MutableList<Purchase>?) {
|
||||
purchases?.forEach { purchase ->
|
||||
val consumeParams = ConsumeParams.newBuilder()
|
||||
.setPurchaseToken(purchase.purchaseToken)
|
||||
|
|
Loading…
Reference in a new issue