From ec69971d416cc699238d502b44cfb5d113348681 Mon Sep 17 00:00:00 2001 From: Mohamad Alsabbagh Date: Thu, 23 Jan 2020 15:50:00 -0500 Subject: [PATCH] [In_app_purchases] Removing extra testing changes for in-app-purchase example (#2481) --- packages/in_app_purchase/CHANGELOG.md | 4 ++++ packages/in_app_purchase/example/lib/main.dart | 2 -- packages/in_app_purchase/pubspec.yaml | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/in_app_purchase/CHANGELOG.md b/packages/in_app_purchase/CHANGELOG.md index 1287dea28122..20bd9c0f2a0d 100644 --- a/packages/in_app_purchase/CHANGELOG.md +++ b/packages/in_app_purchase/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.3.0+1 + +* Fixing usage example. No functional changes. + ## 0.3.0 * Migrate the `Google Play Library` to 2.0.3. diff --git a/packages/in_app_purchase/example/lib/main.dart b/packages/in_app_purchase/example/lib/main.dart index df8733738ecf..102b877905cc 100644 --- a/packages/in_app_purchase/example/lib/main.dart +++ b/packages/in_app_purchase/example/lib/main.dart @@ -362,13 +362,11 @@ class _MyAppState extends State { void _listenToPurchaseUpdated(List purchaseDetailsList) { purchaseDetailsList.forEach((PurchaseDetails purchaseDetails) async { - await InAppPurchaseConnection.instance.consumePurchase(purchaseDetails); if (purchaseDetails.status == PurchaseStatus.pending) { showPendingUI(); } else { if (purchaseDetails.status == PurchaseStatus.error) { handleError(purchaseDetails.error); - return; } else if (purchaseDetails.status == PurchaseStatus.purchased) { bool valid = await _verifyPurchase(purchaseDetails); if (valid) { diff --git a/packages/in_app_purchase/pubspec.yaml b/packages/in_app_purchase/pubspec.yaml index f8267582a1e1..1fa59626f2d1 100644 --- a/packages/in_app_purchase/pubspec.yaml +++ b/packages/in_app_purchase/pubspec.yaml @@ -1,7 +1,7 @@ name: in_app_purchase description: A Flutter plugin for in-app purchases. Exposes APIs for making in-app purchases through the App Store and Google Play. homepage: https://github.com/flutter/plugins/tree/master/packages/in_app_purchase -version: 0.3.0 +version: 0.3.0+1 dependencies: