Skip to content

Commit

Permalink
[in_app_purchase] Update json_serializable (flutter#6092)
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartmorgan authored and mauricioluz committed Jan 26, 2023
1 parent 997e142 commit 7e67611
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 11 deletions.
4 changes: 4 additions & 0 deletions packages/in_app_purchase/in_app_purchase_android/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.2.3+1

* Updates `json_serializable` to fix warnings in generated code.

## 0.2.3

* Upgrades Google Play Billing Library to 5.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ class PurchaseWrapper {

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

Expand Down Expand Up @@ -209,6 +210,7 @@ class PurchaseHistoryRecordWrapper {

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

final String? _sku;
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions packages/in_app_purchase/in_app_purchase_android/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: in_app_purchase_android
description: An implementation for the Android platform of the Flutter `in_app_purchase` plugin. This uses the Android BillingClient APIs.
repository: https://github.com/flutter/plugins/tree/main/packages/in_app_purchase/in_app_purchase_android
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+in_app_purchase%22
version: 0.2.3
version: 0.2.3+1

environment:
sdk: ">=2.14.0 <3.0.0"
Expand All @@ -21,12 +21,12 @@ dependencies:
flutter:
sdk: flutter
in_app_purchase_platform_interface: ^1.3.0
json_annotation: ^4.3.0
json_annotation: ^4.6.0

dev_dependencies:
build_runner: ^2.0.0
flutter_test:
sdk: flutter
json_serializable: ^6.0.0
json_serializable: ^6.3.1
mockito: ^5.1.0
test: ^1.16.0

0 comments on commit 7e67611

Please sign in to comment.