Skip to content

Commit bee3709

Browse files
[in_app_purchase] Update json_serializable (flutter#6092)
1 parent 68cdc58 commit bee3709

File tree

4 files changed

+15
-11
lines changed

4 files changed

+15
-11
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.2.3+1
2+
3+
* Updates `json_serializable` to fix warnings in generated code.
4+
15
## 0.2.3
26

37
* Upgrades Google Play Billing Library to 5.0

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ class PurchaseWrapper {
106106

107107
/// The product ID of this purchase.
108108
@Deprecated('Use skus instead')
109+
@JsonKey(ignore: true)
109110
String get sku => _sku ?? (skus.isNotEmpty ? skus.first : '');
110111
final String? _sku;
111112

@@ -209,6 +210,7 @@ class PurchaseHistoryRecordWrapper {
209210

210211
/// The product ID of this purchase.
211212
@Deprecated('Use skus instead')
213+
@JsonKey(ignore: true)
212214
String get sku => _sku ?? (skus.isNotEmpty ? skus.first : '');
213215

214216
final String? _sku;

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

Lines changed: 6 additions & 8 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: 3 additions & 3 deletions
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/main/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.2.3
5+
version: 0.2.3+1
66

77
environment:
88
sdk: ">=2.14.0 <3.0.0"
@@ -21,12 +21,12 @@ dependencies:
2121
flutter:
2222
sdk: flutter
2323
in_app_purchase_platform_interface: ^1.3.0
24-
json_annotation: ^4.3.0
24+
json_annotation: ^4.6.0
2525

2626
dev_dependencies:
2727
build_runner: ^2.0.0
2828
flutter_test:
2929
sdk: flutter
30-
json_serializable: ^6.0.0
30+
json_serializable: ^6.3.1
3131
mockito: ^5.1.0
3232
test: ^1.16.0

0 commit comments

Comments
 (0)