Skip to content

Commit d474fd3

Browse files
authored
[in_app_purchase] [#135759] Fix. doc reference finishPurchase to completePurchase. (#5081)
## What type of PR is this? (check all applicable) ## Description finishPurchase was mentioned in the doc, but does not exist in the package, instead completePurchase is used now, so updating the comment link. ## Fix Updated finishPurchase to completePurchase. ## Related Tickets & Documents - Closes [#135769](flutter/flutter#135759)
1 parent 0e42c04 commit d474fd3

File tree

6 files changed

+12
-4
lines changed

6 files changed

+12
-4
lines changed

packages/in_app_purchase/in_app_purchase/CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 3.1.11
2+
3+
* Updates documentation reference of `finishPurchase` to `completePurchase`.
4+
15
## 3.1.10
26

37
* Updates example code for current versions of Flutter.

packages/in_app_purchase/in_app_purchase/lib/in_app_purchase.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ class InAppPurchase implements InAppPurchasePlatformAdditionProvider {
195195
/// Restored purchases are delivered through the [purchaseStream] with a
196196
/// status of [PurchaseStatus.restored]. You should listen for these purchases,
197197
/// validate their receipts, deliver the content and mark the purchase complete
198-
/// by calling the [finishPurchase] method for each purchase.
198+
/// by calling the [completePurchase] method for each purchase.
199199
///
200200
/// This does not return consumed products. If you want to restore unused
201201
/// consumable products, you need to persist consumable product information

packages/in_app_purchase/in_app_purchase/pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: in_app_purchase
22
description: A Flutter plugin for in-app purchases. Exposes APIs for making in-app purchases through the App Store and Google Play.
33
repository: https://github.com/flutter/packages/tree/main/packages/in_app_purchase/in_app_purchase
44
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+in_app_purchase%22
5-
version: 3.1.10
5+
version: 3.1.11
66

77
environment:
88
sdk: ">=2.19.0 <4.0.0"

packages/in_app_purchase/in_app_purchase_platform_interface/CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 1.3.6
2+
3+
* Updates documentation reference of `finishPurchase` to `completePurchase`.
4+
15
## 1.3.5
26

37
* Adds pub topics to package metadata.

packages/in_app_purchase/in_app_purchase_platform_interface/lib/src/in_app_purchase_platform.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ abstract class InAppPurchasePlatform extends PlatformInterface {
182182
/// Restored purchases are delivered through the [purchaseStream] with a
183183
/// status of [PurchaseStatus.restored]. You should listen for these purchases,
184184
/// validate their receipts, deliver the content and mark the purchase complete
185-
/// by calling the [finishPurchase] method for each purchase.
185+
/// by calling the [completePurchase] method for each purchase.
186186
///
187187
/// This does not return consumed products. If you want to restore unused
188188
/// consumable products, you need to persist consumable product information

packages/in_app_purchase/in_app_purchase_platform_interface/pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ repository: https://github.com/flutter/packages/tree/main/packages/in_app_purcha
44
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+in_app_purchase%22
55
# NOTE: We strongly prefer non-breaking changes, even at the expense of a
66
# less-clean API. See https://flutter.dev/go/platform-interface-breaking-changes
7-
version: 1.3.5
7+
version: 1.3.6
88

99
environment:
1010
sdk: ">=2.19.0 <4.0.0"

0 commit comments

Comments
 (0)