Compare commits

..

9 Commits

Author SHA1 Message Date
Björn Ritzl
88028fd29f Update index.md 2025-06-04 07:54:03 +02:00
Björn Ritzl
c0e35039f4
Merge pull request #66 from defold/dev-update-to-android-billing-7-0-0
Update to Google Play Billing 7 0 0
2025-02-11 22:23:42 +01:00
Björn Ritzl
2e17b2f413 Merge branch 'master' into dev-update-to-android-billing-7-0-0 2025-02-11 13:58:34 +01:00
Björn Ritzl
f398677d7b
Merge pull request #68 from defold/dev-update-to-android-billing-6-0-1
Update to android billing 6.2.1
2024-07-04 15:18:13 +02:00
Björn Ritzl
d1c4e88562 Update build.gradle 2024-07-04 15:04:32 +02:00
Björn Ritzl
6f06d7f08f Updated to 6.0.1 2024-07-04 14:52:58 +02:00
Björn Ritzl
0852e42977 Update .gitignore 2024-07-04 14:36:12 +02:00
Björn Ritzl
33174f25ea Merge branch 'master' into dev-update-to-android-billing-7-0-0 2024-07-03 19:27:05 +02:00
Björn Ritzl
1c27130eef Updated to Billing 7.0.0 2024-07-03 19:06:50 +02:00
5 changed files with 8 additions and 7 deletions

2
.gitignore vendored
View File

@ -9,3 +9,5 @@ Thumbs.db
.cproject
builtins
_site
manifest.private.der
manifest.public.der

View File

@ -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

View File

@ -3,5 +3,5 @@ repositories {
}
dependencies {
implementation 'com.android.billingclient:billing:6.0.0'
implementation 'com.android.billingclient:billing:7.0.0'
}

View File

@ -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) {

View File

@ -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