From 6404a6c3c776a4542dca09bb52ff3f0089bbc004 Mon Sep 17 00:00:00 2001 From: creativecreatorormaybenot <19204050+creativecreatorormaybenot@users.noreply.github.com> Date: Tue, 18 Jun 2019 09:15:16 +0000 Subject: [PATCH 1/7] Fixed README --- packages/in_app_purchase/README.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/packages/in_app_purchase/README.md b/packages/in_app_purchase/README.md index 24584850474c..40d311295af3 100644 --- a/packages/in_app_purchase/README.md +++ b/packages/in_app_purchase/README.md @@ -26,14 +26,14 @@ guides: * [In-App Purchase (App Store)](https://developer.apple.com/in-app-purchase/) * [Google Play Biling Overview](https://developer.android.com/google/play/billing/billing_overview) -You can check out the [example app README](example/README.md) for steps on how +You can check out the [example app README](https://github.com/flutter/plugins/blob/master/packages/in_app_purchase/example/README.md) for steps on how to configure in app purchases in both stores. Once you've configured your in app purchases in their respective stores, you're able to start using the plugin. There's two basic options available to you to use. -1. [in_app_purchase.dart](lib/src/in_app_purchase.dart), +1. [in_app_purchase.dart](https://github.com/flutter/plugins/blob/master/packages/in_app_purchase/lib/in_app_purchase.dart), the generic idiommatic Flutter API. This exposes the most basic IAP-related functionality. The goal is that Flutter apps should be able to use this API surface on its own for the vast majority of cases. If you use this you should @@ -42,8 +42,8 @@ use. below. 2. Dart APIs exposing the underlying platform APIs as directly as possible: - [store_kit_wrappers.dart](lib/src/store_kit_wrappers.dart) and - [billing_client_wrappers.dart](lib/src/billing_client_wrappers.dart). These + [store_kit_wrappers.dart](https://github.com/flutter/plugins/blob/master/packages/in_app_purchase/lib/store_kit_wrappers.dart) and + [billing_client_wrappers.dart](https://github.com/flutter/plugins/blob/master/packages/in_app_purchase/lib/billing_client_wrappers.dart). These API surfaces should expose all the platform-specific behavior and allow for more fine-tuned control when needed. However if you use this you'll need to code your purchase handling logic significantly differently depending on @@ -87,7 +87,8 @@ if (!available) { ### Loading products for sale ```dart -const Set _kIds = ['product1', 'product2'].toSet(); +// Set literals require Dart 2.2. Alternatively, remove `const` and use `['product1', 'product2'].toSet()`. +const Set _kIds = {'product1', 'product2'}; final ProductDetailsResponse response = await InAppPurchaseConnection.instance.queryProductDetails(_kIds); if (!response.notFoundIds.isEmpty()) { // Handle the error. From 7123c925c8651c7ae34e7f699bdc5b8ff3f93fb6 Mon Sep 17 00:00:00 2001 From: creativecreatorormaybenot <19204050+creativecreatorormaybenot@users.noreply.github.com> Date: Tue, 18 Jun 2019 09:18:43 +0000 Subject: [PATCH 2/7] Bumped version --- packages/in_app_purchase/CHANGELOG.md | 4 ++++ packages/in_app_purchase/pubspec.yaml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/in_app_purchase/CHANGELOG.md b/packages/in_app_purchase/CHANGELOG.md index 7bedda56e9e9..a0a2660594cd 100644 --- a/packages/in_app_purchase/CHANGELOG.md +++ b/packages/in_app_purchase/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.2.0+1 + +* Fixed code error in `README.md` and adjusted links to work on Pub. + ## 0.2.0 * [Breaking Change] Rename 'PurchaseError' to 'IAPError'. diff --git a/packages/in_app_purchase/pubspec.yaml b/packages/in_app_purchase/pubspec.yaml index 437e9a5e2221..31cb1592cde3 100644 --- a/packages/in_app_purchase/pubspec.yaml +++ b/packages/in_app_purchase/pubspec.yaml @@ -2,7 +2,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. author: Flutter Team homepage: https://github.com/flutter/plugins/tree/master/packages/in_app_purchase -version: 0.2.0 +version: 0.2.0+1 dependencies: async: ^2.0.8 From ecdf5099105222c68346363661d7e55265c4ff6f Mon Sep 17 00:00:00 2001 From: creativecreatorormaybenot <19204050+creativecreatorormaybenot@users.noreply.github.com> Date: Tue, 18 Jun 2019 11:43:42 +0000 Subject: [PATCH 3/7] Changed links to direct to directories, which will show README's --- packages/in_app_purchase/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/in_app_purchase/README.md b/packages/in_app_purchase/README.md index 40d311295af3..5f1a9194ea07 100644 --- a/packages/in_app_purchase/README.md +++ b/packages/in_app_purchase/README.md @@ -33,7 +33,7 @@ Once you've configured your in app purchases in their respective stores, you're able to start using the plugin. There's two basic options available to you to use. -1. [in_app_purchase.dart](https://github.com/flutter/plugins/blob/master/packages/in_app_purchase/lib/in_app_purchase.dart), +1. [in_app_purchase.dart](https://github.com/flutter/plugins/tree/master/packages/in_app_purchase/lib/src/in_app_purchase), the generic idiommatic Flutter API. This exposes the most basic IAP-related functionality. The goal is that Flutter apps should be able to use this API surface on its own for the vast majority of cases. If you use this you should @@ -42,8 +42,8 @@ use. below. 2. Dart APIs exposing the underlying platform APIs as directly as possible: - [store_kit_wrappers.dart](https://github.com/flutter/plugins/blob/master/packages/in_app_purchase/lib/store_kit_wrappers.dart) and - [billing_client_wrappers.dart](https://github.com/flutter/plugins/blob/master/packages/in_app_purchase/lib/billing_client_wrappers.dart). These + [store_kit_wrappers.dart](https://github.com/flutter/plugins/blob/master/packages/in_app_purchase/lib/src/store_kit_wrappers) and + [billing_client_wrappers.dart](https://github.com/flutter/plugins/blob/master/packages/in_app_purchase/lib/src/billing_client_wrappers). These API surfaces should expose all the platform-specific behavior and allow for more fine-tuned control when needed. However if you use this you'll need to code your purchase handling logic significantly differently depending on From b6132193e135e98ec80e6a8c77168dd05eaed208 Mon Sep 17 00:00:00 2001 From: creativecreatorormaybenot <19204050+creativecreatorormaybenot@users.noreply.github.com> Date: Tue, 18 Jun 2019 12:01:50 +0000 Subject: [PATCH 4/7] Update meta --- packages/in_app_purchase/pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/in_app_purchase/pubspec.yaml b/packages/in_app_purchase/pubspec.yaml index 31cb1592cde3..fa64be42e8ed 100644 --- a/packages/in_app_purchase/pubspec.yaml +++ b/packages/in_app_purchase/pubspec.yaml @@ -10,7 +10,7 @@ dependencies: flutter: sdk: flutter json_annotation: ^2.0.0 - meta: ^1.1.6 + meta: ^1.1.7 dev_dependencies: build_runner: ^1.0.0 From 5b0cc9f8913ab2b350c0df0d5360068430aefe61 Mon Sep 17 00:00:00 2001 From: creativecreatorormaybenot <19204050+creativecreatorormaybenot@users.noreply.github.com> Date: Tue, 18 Jun 2019 12:10:10 +0000 Subject: [PATCH 5/7] w/e --- packages/in_app_purchase/pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/in_app_purchase/pubspec.yaml b/packages/in_app_purchase/pubspec.yaml index fa64be42e8ed..31cb1592cde3 100644 --- a/packages/in_app_purchase/pubspec.yaml +++ b/packages/in_app_purchase/pubspec.yaml @@ -10,7 +10,7 @@ dependencies: flutter: sdk: flutter json_annotation: ^2.0.0 - meta: ^1.1.7 + meta: ^1.1.6 dev_dependencies: build_runner: ^1.0.0 From 12939a931b54bafabfc57aa0af2fe187c7924639 Mon Sep 17 00:00:00 2001 From: creativecreatorormaybenot <19204050+creativecreatorormaybenot@users.noreply.github.com> Date: Mon, 8 Jul 2019 17:56:37 +0000 Subject: [PATCH 6/7] Update README.md --- packages/in_app_purchase/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/in_app_purchase/README.md b/packages/in_app_purchase/README.md index 5f1a9194ea07..e23913d05f88 100644 --- a/packages/in_app_purchase/README.md +++ b/packages/in_app_purchase/README.md @@ -87,7 +87,7 @@ if (!available) { ### Loading products for sale ```dart -// Set literals require Dart 2.2. Alternatively, remove `const` and use `['product1', 'product2'].toSet()`. +// Set literals require Dart 2.2. Alternatively, use `Set _kIds = ['product1', 'product2'].toSet()`. const Set _kIds = {'product1', 'product2'}; final ProductDetailsResponse response = await InAppPurchaseConnection.instance.queryProductDetails(_kIds); if (!response.notFoundIds.isEmpty()) { From 2a44c2115f33e56bc4e14568b5da228d2188108c Mon Sep 17 00:00:00 2001 From: creativecreatorormaybenot <19204050+creativecreatorormaybenot@users.noreply.github.com> Date: Mon, 8 Jul 2019 21:50:29 +0000 Subject: [PATCH 7/7] Update pubspec.yaml --- packages/in_app_purchase/pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/in_app_purchase/pubspec.yaml b/packages/in_app_purchase/pubspec.yaml index 3987990e1c77..5838ab1ff29b 100644 --- a/packages/in_app_purchase/pubspec.yaml +++ b/packages/in_app_purchase/pubspec.yaml @@ -2,7 +2,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. author: Flutter Team homepage: https://github.com/flutter/plugins/tree/master/packages/in_app_purchase -version: 0.2.0+3 +version: 0.2.0+4 dependencies: async: ^2.0.8