Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.
Prev Previous commit
Next Next commit
Applied the patch to make the formatter happy.
  • Loading branch information
vlad0209 committed Jun 1, 2022
commit d4b97de52b491af576b6166c46aa95a45d0ac584
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ class InAppPurchaseStoreKitPlatform extends InAppPurchasePlatform {
Future<bool> buyNonConsumable({required PurchaseParam purchaseParam}) async {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't we need to change the function signature of the parent class too?
And it looks like quantity should be part of PurchaseParam as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your comment. According to your suggestions I will move the quantity param to PurchaseParam and change the function signature of the parent class. Then I will create issue describing the feature.

await _skPaymentQueueWrapper.addPayment(SKPaymentWrapper(
productIdentifier: purchaseParam.productDetails.id,
quantity: purchaseParam is AppStorePurchaseParam ? purchaseParam.quantity : 1,
quantity:
purchaseParam is AppStorePurchaseParam ? purchaseParam.quantity : 1,
applicationUsername: purchaseParam.applicationUserName,
simulatesAskToBuyInSandbox: purchaseParam is AppStorePurchaseParam &&
purchaseParam.simulatesAskToBuyInSandbox,
Expand Down