File tree 3 files changed +10
-4
lines changed
packages/in_app_purchase/in_app_purchase
3 files changed +10
-4
lines changed Original file line number Diff line number Diff line change
1
+ ## 1.0.9
2
+
3
+ * Handle purchases with ` PurchaseStatus.restored ` correctly in the example App.
4
+ * Updated dependencies on ` in_app_purchase_android ` and ` in_app_purchase_ios ` to their latest versions (version 0.1.5 and 0.1.3+5 respectively).
5
+
1
6
## 1.0.8
2
7
3
8
* Fix repository link in pubspec.yaml.
Original file line number Diff line number Diff line change @@ -429,7 +429,8 @@ class _MyAppState extends State<_MyApp> {
429
429
} else {
430
430
if (purchaseDetails.status == PurchaseStatus .error) {
431
431
handleError (purchaseDetails.error! );
432
- } else if (purchaseDetails.status == PurchaseStatus .purchased) {
432
+ } else if (purchaseDetails.status == PurchaseStatus .purchased ||
433
+ purchaseDetails.status == PurchaseStatus .restored) {
433
434
bool valid = await _verifyPurchase (purchaseDetails);
434
435
if (valid) {
435
436
deliverProduct (purchaseDetails);
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: in_app_purchase
2
2
description : A Flutter plugin for in-app purchases. Exposes APIs for making in-app purchases through the App Store and Google Play.
3
3
repository : https://github.com/flutter/plugins/tree/master/packages/in_app_purchase/in_app_purchase
4
4
issue_tracker : https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+in_app_purchase%22
5
- version : 1.0.8
5
+ version : 1.0.9
6
6
7
7
environment :
8
8
sdk : " >=2.12.0 <3.0.0"
@@ -20,8 +20,8 @@ dependencies:
20
20
flutter :
21
21
sdk : flutter
22
22
in_app_purchase_platform_interface : ^1.0.0
23
- in_app_purchase_android : ^0.1.4
24
- in_app_purchase_ios : ^0.1.1
23
+ in_app_purchase_android : ^0.1.5
24
+ in_app_purchase_ios : ^0.1.3+5
25
25
26
26
dev_dependencies :
27
27
flutter_driver :
You can’t perform that action at this time.
0 commit comments