Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Added additional assert to test enablePendingPurchase
  • Loading branch information
mvanbeusekom committed May 11, 2021
commit 4418ec856c04ad9c5101075a16925be18db2dbb6
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,12 @@ class InAppPurchaseAndroidPlatformAddition
/// Creates a [InAppPurchaseAndroidPlatformAddition] which uses the supplied
/// `BillingClient` to provide Android specific features.
InAppPurchaseAndroidPlatformAddition(this._billingClient) {
if (InAppPurchaseAndroidPlatformAddition.enablePendingPurchase) {
_billingClient.enablePendingPurchases();
}
assert(
_enablePendingPurchase,
'enablePendingPurchases() must be called when initializing the application and before you access the [InAppPurchase.instance].',
);

_billingClient.enablePendingPurchases();
}

/// Whether pending purchase is enabled.
Expand Down