mirror of
https://github.com/defold/extension-iap
synced 2025-06-27 18:37:44 +02:00
Compare commits
9 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
88028fd29f | ||
|
c0e35039f4 | ||
|
2e17b2f413 | ||
|
f398677d7b | ||
|
d1c4e88562 | ||
|
6f06d7f08f | ||
|
0852e42977 | ||
|
33174f25ea | ||
|
1c27130eef |
2
.gitignore
vendored
2
.gitignore
vendored
@ -9,3 +9,5 @@ Thumbs.db
|
||||
.cproject
|
||||
builtins
|
||||
_site
|
||||
manifest.private.der
|
||||
manifest.public.der
|
||||
|
@ -234,6 +234,3 @@ On iOS, the "price_string" field contains '~' characters
|
||||
## Source code
|
||||
|
||||
The source code is available on [GitHub](https://github.com/defold/extension-iap)
|
||||
|
||||
|
||||
## API reference
|
||||
|
@ -3,5 +3,5 @@ repositories {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation 'com.android.billingclient:billing:6.0.0'
|
||||
implementation 'com.android.billingclient:billing:7.0.0'
|
||||
}
|
||||
|
@ -21,6 +21,7 @@ import com.android.billingclient.api.BillingClient;
|
||||
import com.android.billingclient.api.BillingClient.BillingResponseCode;
|
||||
import com.android.billingclient.api.BillingClient.ProductType;
|
||||
import com.android.billingclient.api.BillingResult;
|
||||
import com.android.billingclient.api.PendingPurchasesParams;
|
||||
import com.android.billingclient.api.Purchase;
|
||||
import com.android.billingclient.api.Purchase.PurchaseState;
|
||||
import com.android.billingclient.api.ProductDetails;
|
||||
@ -56,7 +57,8 @@ public class IapGooglePlay implements PurchasesUpdatedListener {
|
||||
this.activity = activity;
|
||||
this.autoFinishTransactions = autoFinishTransactions;
|
||||
|
||||
billingClient = BillingClient.newBuilder(activity).setListener(this).enablePendingPurchases().build();
|
||||
PendingPurchasesParams pendingPurchasesParams = PendingPurchasesParams.newBuilder().enableOneTimeProducts().build();
|
||||
billingClient = BillingClient.newBuilder(activity).setListener(this).enablePendingPurchases(pendingPurchasesParams).build();
|
||||
billingClient.startConnection(new BillingClientStateListener() {
|
||||
@Override
|
||||
public void onBillingSetupFinished(BillingResult billingResult) {
|
||||
|
@ -11,8 +11,8 @@ height = 1136
|
||||
[android]
|
||||
input_method = HiddenInputField
|
||||
package = com.defold.extension.iap
|
||||
version_code = 7
|
||||
target_sdk_version = 29
|
||||
version_code = 9
|
||||
minimum_sdk_version = 21
|
||||
|
||||
[project]
|
||||
title = extension-iap
|
||||
|
Loading…
x
Reference in New Issue
Block a user