File tree Expand file tree Collapse file tree 4 files changed +13
-1
lines changed
packages/in_app_purchase/in_app_purchase_platform_interface Expand file tree Collapse file tree 4 files changed +13
-1
lines changed Original file line number Diff line number Diff line change
1
+ ## 1.1.0
2
+
3
+ * Added ` currencySymbol ` in ProductDetails.
4
+
1
5
## 1.0.1
2
6
3
7
* Fixed ` Restoring previous purchases ` link.
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ class ProductDetails {
12
12
required this .price,
13
13
required this .rawPrice,
14
14
required this .currencyCode,
15
+ this .currencySymbol = '' ,
15
16
});
16
17
17
18
/// The identifier of the product.
@@ -42,4 +43,9 @@ class ProductDetails {
42
43
/// The currency code for the price of the product.
43
44
/// Based on the price specified in the App Store Connect or Sku in Google Play console based on the platform.
44
45
final String currencyCode;
46
+
47
+ /// The currency symbol for the locale, e.g. $ for US locale.
48
+ ///
49
+ /// When the currency symbol cannot be determined, the ISO 4217 currency code is returned.
50
+ final String currencySymbol;
45
51
}
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ repository: https://github.com/flutter/plugins/tree/master/packages/in_app_purch
4
4
issue_tracker : https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+in_app_purchase%22
5
5
# NOTE: We strongly prefer non-breaking changes, even at the expense of a
6
6
# less-clean API. See https://flutter.dev/go/platform-interface-breaking-changes
7
- version : 1.0.1
7
+ version : 1.1.0
8
8
9
9
environment :
10
10
sdk : " >=2.12.0 <3.0.0"
Original file line number Diff line number Diff line change @@ -16,13 +16,15 @@ void main() {
16
16
description: 'description' ,
17
17
price: '13.37' ,
18
18
currencyCode: 'USD' ,
19
+ currencySymbol: r'$' ,
19
20
rawPrice: 13.37 );
20
21
21
22
expect (productDetails.id, 'id' );
22
23
expect (productDetails.title, 'title' );
23
24
expect (productDetails.description, 'description' );
24
25
expect (productDetails.rawPrice, 13.37 );
25
26
expect (productDetails.currencyCode, 'USD' );
27
+ expect (productDetails.currencySymbol, r'$' );
26
28
});
27
29
});
28
30
}
You can’t perform that action at this time.
0 commit comments