You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +00:00
Clean up the GodotPlugin public API.
This commit is contained in:
@@ -67,7 +67,7 @@ public class GodotPayment extends GodotPlugin implements PurchasesUpdatedListene
|
||||
super(godot);
|
||||
|
||||
billingClient = BillingClient
|
||||
.newBuilder(getGodot())
|
||||
.newBuilder(getActivity())
|
||||
.enablePendingPurchases()
|
||||
.setListener(this)
|
||||
.build();
|
||||
@@ -182,7 +182,7 @@ public class GodotPayment extends GodotPlugin implements PurchasesUpdatedListene
|
||||
.setSkuDetails(skuDetails)
|
||||
.build();
|
||||
|
||||
BillingResult result = billingClient.launchBillingFlow(getGodot(), purchaseParams);
|
||||
BillingResult result = billingClient.launchBillingFlow(getActivity(), purchaseParams);
|
||||
|
||||
Dictionary returnValue = new Dictionary();
|
||||
if (result.getResponseCode() == BillingClient.BillingResponseCode.OK) {
|
||||
|
||||
Reference in New Issue
Block a user