Skip to content

Commit

Permalink
Address deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelkourlas committed Jun 28, 2024
1 parent 4414012 commit 16aacad
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ class Billing(private val context: Context) : PurchasesUpdatedListener,
BillingClientStateListener {
private val client =
BillingClient.newBuilder(context)
.enablePendingPurchases()
.enablePendingPurchases(
PendingPurchasesParams.newBuilder().enableOneTimeProducts()
.build()
)
.setListener(this)
.build()
private var connected = false
Expand Down

0 comments on commit 16aacad

Please sign in to comment.