Skip to content

Commit 06abd68

Browse files
authored
[in_app_purchase] Update in_app_purchase_android version in in_app_purchase (#8463)
Extracted from #8218.
1 parent ebb373e commit 06abd68

File tree

5 files changed

+14
-13
lines changed

5 files changed

+14
-13
lines changed

packages/in_app_purchase/in_app_purchase/CHANGELOG.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
## NEXT
1+
## 3.2.1
22

3-
* Updates minimum supported SDK version to Flutter 3.22/Dart 3.4.
3+
* Updates minimum supported SDK version to Flutter 3.24/Dart 3.5.
4+
* Updates `in_app_purchase_android` to 0.4.0.
45

56
## 3.2.0
67

packages/in_app_purchase/in_app_purchase/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ the end user's payment account.
216216
To upgrade/downgrade an existing in-app subscription in Google Play,
217217
you need to provide an instance of `ChangeSubscriptionParam` with the old
218218
`PurchaseDetails` that the user needs to migrate from, and an optional
219-
`ProrationMode` with the `GooglePlayPurchaseParam` object while calling
219+
`ReplacementMode` with the `GooglePlayPurchaseParam` object while calling
220220
`InAppPurchase.buyNonConsumable`.
221221

222222
The App Store does not require this because it provides a subscription
@@ -232,7 +232,7 @@ PurchaseParam purchaseParam = GooglePlayPurchaseParam(
232232
productDetails: productDetails,
233233
changeSubscriptionParam: ChangeSubscriptionParam(
234234
oldPurchaseDetails: oldPurchaseDetails,
235-
prorationMode: ProrationMode.immediateWithTimeProration));
235+
replacementMode: ReplacementMode.withTimeProration));
236236
InAppPurchase.instance
237237
.buyNonConsumable(purchaseParam: purchaseParam);
238238
```

packages/in_app_purchase/in_app_purchase/example/lib/main.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,8 +284,8 @@ class _MyAppState extends State<_MyApp> {
284284
changeSubscriptionParam: (oldSubscription != null)
285285
? ChangeSubscriptionParam(
286286
oldPurchaseDetails: oldSubscription,
287-
prorationMode:
288-
ProrationMode.immediateWithTimeProration,
287+
replacementMode:
288+
ReplacementMode.withTimeProration,
289289
)
290290
: null);
291291
} else {

packages/in_app_purchase/in_app_purchase/example/pubspec.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ description: Demonstrates how to use the in_app_purchase plugin.
33
publish_to: none
44

55
environment:
6-
sdk: ^3.4.0
7-
flutter: ">=3.22.0"
6+
sdk: ^3.5.0
7+
flutter: ">=3.24.0"
88

99
dependencies:
1010
flutter:
@@ -16,7 +16,7 @@ dependencies:
1616
# The example app is bundled with the plugin so we use a path dependency on
1717
# the parent directory to use the current plugin's version.
1818
path: ../
19-
in_app_purchase_android: ^0.3.0
19+
in_app_purchase_android: ^0.4.0
2020
in_app_purchase_storekit: ^0.3.4
2121
shared_preferences: ^2.0.0
2222

packages/in_app_purchase/in_app_purchase/pubspec.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ 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.2.0
5+
version: 3.2.1
66

77
environment:
8-
sdk: ^3.4.0
9-
flutter: ">=3.22.0"
8+
sdk: ^3.5.0
9+
flutter: ">=3.24.0"
1010

1111
flutter:
1212
plugin:
@@ -21,7 +21,7 @@ flutter:
2121
dependencies:
2222
flutter:
2323
sdk: flutter
24-
in_app_purchase_android: ^0.3.4
24+
in_app_purchase_android: ^0.4.0
2525
in_app_purchase_platform_interface: ^1.4.0
2626
in_app_purchase_storekit: ^0.3.14
2727

0 commit comments

Comments
 (0)