-
Notifications
You must be signed in to change notification settings - Fork 3.5k
[go_router_builder] [in_app_purchase_storekit] Removes redundant arguments from annotations #9964
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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 |
---|---|---|
|
@@ -384,7 +384,7 @@ class SKProductDiscountWrapper { | |
/// A string used to uniquely identify a discount offer for a product. | ||
/// | ||
/// You set up offers and their identifiers in App Store Connect. | ||
@JsonKey(defaultValue: null) | ||
@JsonKey() | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for removing the redundant |
||
final String? identifier; | ||
|
||
/// Values representing the types of discount offers an app can present. | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @LouiseHsu this class doesn't seem to be read by anyone, and the code generator seems to be generating
_$SKProductDiscountTypeEnumMap
just fine without it being added to_SerializedEnums
. Do you think this type can be removed?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I couldn't do without it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not familiar with json_serializable.dart, but the following code already exists in
enum_converters.g.dart
today:you mean if you rerun code gen the above map const is removed from the generated source code, without that new field in
_SerializedEnums
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Exactly. See the second commit on this branch, I simply ran the build and pushed, expecting any diagnostics to be stale analysis that would get fixed once it was updated. Once I saw the bots failed, I actually looked at the output and diagnostics.
So I had to add that and remove the
?
from the map key for it to build. It was also warning on the terminal (while building) about the annotations version, so I upgraded it as well.I'm not sure why this line was missing, if it was removed by mistake or something, but it would not generate this without it.