Skip to content

Commit

Permalink
[in_app_purchase] Update in_app_purchase_android version in in_app_pu…
Browse files Browse the repository at this point in the history
…rchase (flutter#8463)

Extracted from flutter#8218.
  • Loading branch information
mchudy authored Jan 23, 2025
1 parent ebb373e commit 06abd68
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 13 deletions.
5 changes: 3 additions & 2 deletions packages/in_app_purchase/in_app_purchase/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## NEXT
## 3.2.1

* Updates minimum supported SDK version to Flutter 3.22/Dart 3.4.
* Updates minimum supported SDK version to Flutter 3.24/Dart 3.5.
* Updates `in_app_purchase_android` to 0.4.0.

## 3.2.0

Expand Down
4 changes: 2 additions & 2 deletions packages/in_app_purchase/in_app_purchase/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ the end user's payment account.
To upgrade/downgrade an existing in-app subscription in Google Play,
you need to provide an instance of `ChangeSubscriptionParam` with the old
`PurchaseDetails` that the user needs to migrate from, and an optional
`ProrationMode` with the `GooglePlayPurchaseParam` object while calling
`ReplacementMode` with the `GooglePlayPurchaseParam` object while calling
`InAppPurchase.buyNonConsumable`.

The App Store does not require this because it provides a subscription
Expand All @@ -232,7 +232,7 @@ PurchaseParam purchaseParam = GooglePlayPurchaseParam(
productDetails: productDetails,
changeSubscriptionParam: ChangeSubscriptionParam(
oldPurchaseDetails: oldPurchaseDetails,
prorationMode: ProrationMode.immediateWithTimeProration));
replacementMode: ReplacementMode.withTimeProration));
InAppPurchase.instance
.buyNonConsumable(purchaseParam: purchaseParam);
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -284,8 +284,8 @@ class _MyAppState extends State<_MyApp> {
changeSubscriptionParam: (oldSubscription != null)
? ChangeSubscriptionParam(
oldPurchaseDetails: oldSubscription,
prorationMode:
ProrationMode.immediateWithTimeProration,
replacementMode:
ReplacementMode.withTimeProration,
)
: null);
} else {
Expand Down
6 changes: 3 additions & 3 deletions packages/in_app_purchase/in_app_purchase/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ description: Demonstrates how to use the in_app_purchase plugin.
publish_to: none

environment:
sdk: ^3.4.0
flutter: ">=3.22.0"
sdk: ^3.5.0
flutter: ">=3.24.0"

dependencies:
flutter:
Expand All @@ -16,7 +16,7 @@ dependencies:
# The example app is bundled with the plugin so we use a path dependency on
# the parent directory to use the current plugin's version.
path: ../
in_app_purchase_android: ^0.3.0
in_app_purchase_android: ^0.4.0
in_app_purchase_storekit: ^0.3.4
shared_preferences: ^2.0.0

Expand Down
8 changes: 4 additions & 4 deletions packages/in_app_purchase/in_app_purchase/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ 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.
repository: https://github.com/flutter/packages/tree/main/packages/in_app_purchase/in_app_purchase
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+in_app_purchase%22
version: 3.2.0
version: 3.2.1

environment:
sdk: ^3.4.0
flutter: ">=3.22.0"
sdk: ^3.5.0
flutter: ">=3.24.0"

flutter:
plugin:
Expand All @@ -21,7 +21,7 @@ flutter:
dependencies:
flutter:
sdk: flutter
in_app_purchase_android: ^0.3.4
in_app_purchase_android: ^0.4.0
in_app_purchase_platform_interface: ^1.4.0
in_app_purchase_storekit: ^0.3.14

Expand Down

0 comments on commit 06abd68

Please sign in to comment.