mirror of
https://github.com/defold/extension-iap
synced 2025-06-27 10:27:46 +02:00
Compare commits
No commits in common. "master" and "6.1.0" have entirely different histories.
2
.gitignore
vendored
2
.gitignore
vendored
@ -9,5 +9,3 @@ Thumbs.db
|
||||
.cproject
|
||||
builtins
|
||||
_site
|
||||
manifest.private.der
|
||||
manifest.public.der
|
||||
|
@ -234,3 +234,6 @@ 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:7.0.0'
|
||||
implementation 'com.android.billingclient:billing:6.0.0'
|
||||
}
|
||||
|
@ -21,7 +21,6 @@ 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;
|
||||
@ -57,8 +56,7 @@ public class IapGooglePlay implements PurchasesUpdatedListener {
|
||||
this.activity = activity;
|
||||
this.autoFinishTransactions = autoFinishTransactions;
|
||||
|
||||
PendingPurchasesParams pendingPurchasesParams = PendingPurchasesParams.newBuilder().enableOneTimeProducts().build();
|
||||
billingClient = BillingClient.newBuilder(activity).setListener(this).enablePendingPurchases(pendingPurchasesParams).build();
|
||||
billingClient = BillingClient.newBuilder(activity).setListener(this).enablePendingPurchases().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 = 9
|
||||
minimum_sdk_version = 21
|
||||
version_code = 7
|
||||
target_sdk_version = 29
|
||||
|
||||
[project]
|
||||
title = extension-iap
|
||||
|
Loading…
x
Reference in New Issue
Block a user