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

[in_app_purchase] Update json_serializable #6092

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had to add these to avoid having new lines in the generated file. It looks like you probably edited the generated file by hand in the previous PR?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahh, my bad, I think I did.

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.

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