Skip to content

Commit 6cb51db

Browse files
authored
json_annotation: prepare for release (google#937)
Regenerate json_annotation code Update example to use overrides Enable expression body lint
1 parent 26ae25e commit 6cb51db

File tree

9 files changed

+143
-151
lines changed

9 files changed

+143
-151
lines changed

analysis_options.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,7 @@ linter:
6767
- prefer_const_declarations
6868
- prefer_contains
6969
- prefer_equal_for_default_values
70-
# Enable once we roll checked_yaml and example
71-
#- prefer_expression_function_bodies
70+
- prefer_expression_function_bodies
7271
- prefer_final_fields
7372
- prefer_final_locals
7473
- prefer_for_elements_to_map_fromIterable

example/lib/example.g.dart

Lines changed: 26 additions & 32 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/lib/generic_response_class_example.g.dart

Lines changed: 24 additions & 31 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/lib/json_converter_example.g.dart

Lines changed: 18 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/lib/tuple_example.g.dart

Lines changed: 14 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/pubspec.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,9 @@ dev_dependencies:
1919
path: ^1.8.0
2020
# Used by tests. Not required to use `json_serializable`.
2121
test: ^1.16.0
22+
23+
dependency_overrides:
24+
json_annotation:
25+
path: ../json_annotation
26+
json_serializable:
27+
path: ../json_serializable

json_annotation/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## 4.1.0-dev
1+
## 4.1.0
22

33
- Added a `const` constructor to `JsonConverter`.
44
- Added `$checkedCreate` helper that will be used by `package:json_serializable`

json_annotation/lib/src/json_serializable.g.dart

Lines changed: 50 additions & 45 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

json_annotation/pubspec.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: json_annotation
2-
version: 4.1.0-dev
2+
version: 4.1.0
33
description: >-
44
Classes and helper functions that support JSON code generation via the
55
`json_serializable` package.
@@ -12,5 +12,5 @@ dependencies:
1212

1313
# When changing JsonSerializable class.
1414
# dev_dependencies:
15-
# build_runner: ^1.0.0
16-
# json_serializable: ^4.0.0
15+
# build_runner: ^2.0.0
16+
# json_serializable: any

0 commit comments

Comments
 (0)