You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-11 13:10:58 +00:00
Clean up the GodotPlugin public API.
This commit is contained in:
@@ -68,7 +68,7 @@ public class GodotPayment extends GodotPlugin implements PurchasesUpdatedListene
|
||||
super(godot);
|
||||
|
||||
billingClient = BillingClient
|
||||
.newBuilder(getGodot())
|
||||
.newBuilder(getActivity())
|
||||
.enablePendingPurchases()
|
||||
.setListener(this)
|
||||
.build();
|
||||
@@ -183,7 +183,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