Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Commit e314c7a

Browse files
authored
[in_app_purchase] Ensure the introductoryPriceMicros field is populated correctly. (#4364)
1 parent a8e0129 commit e314c7a

File tree

5 files changed

+10
-5
lines changed

5 files changed

+10
-5
lines changed

packages/in_app_purchase/in_app_purchase_android/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.1.4+7
2+
3+
* Ensure that the `SkuDetailsWrapper.introductoryPriceMicros` is populated correctly.
4+
15
## 0.1.4+6
26

37
* Ensure that purchases correctly indicate whether they are acknowledged or not. The `PurchaseDetails.pendingCompletePurchase` field now correctly indicates if the purchase still needs to be completed.

packages/in_app_purchase/in_app_purchase_android/lib/src/billing_client_wrappers/sku_details_wrapper.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class SkuDetailsWrapper {
6868
final String introductoryPrice;
6969

7070
/// [introductoryPrice] in micro-units 990000
71-
@JsonKey(defaultValue: '')
71+
@JsonKey(name: 'introductoryPriceAmountMicros', defaultValue: '')
7272
final String introductoryPriceMicros;
7373

7474
/// The number of subscription billing periods for which the user will be given the introductory price, such as 3.

packages/in_app_purchase/in_app_purchase_android/lib/src/billing_client_wrappers/sku_details_wrapper.g.dart

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/in_app_purchase/in_app_purchase_android/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: in_app_purchase_android
22
description: An implementation for the Android platform of the Flutter `in_app_purchase` plugin. This uses the Android BillingClient APIs.
33
repository: https://github.com/flutter/plugins/tree/master/packages/in_app_purchase/in_app_purchase_android
44
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+in_app_purchase%22
5-
version: 0.1.4+6
5+
version: 0.1.4+7
66

77
environment:
88
sdk: ">=2.12.0 <3.0.0"

packages/in_app_purchase/in_app_purchase_android/test/billing_client_wrappers/sku_details_wrapper_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ Map<String, dynamic> buildSkuMap(SkuDetailsWrapper original) {
134134
'description': original.description,
135135
'freeTrialPeriod': original.freeTrialPeriod,
136136
'introductoryPrice': original.introductoryPrice,
137-
'introductoryPriceMicros': original.introductoryPriceMicros,
137+
'introductoryPriceAmountMicros': original.introductoryPriceMicros,
138138
'introductoryPriceCycles': original.introductoryPriceCycles,
139139
'introductoryPricePeriod': original.introductoryPricePeriod,
140140
'price': original.price,

0 commit comments

Comments
 (0)