Skip to content

Commit 81d7abc

Browse files
authored
Update example to latest stable releases (#801)
1 parent 829b45a commit 81d7abc

File tree

3 files changed

+6
-12
lines changed

3 files changed

+6
-12
lines changed

example/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ dependencies to your `pubspec.yaml`.
55

66
```yaml
77
dependencies:
8-
json_annotation: ^3.0.0
8+
json_annotation: ^4.0.0
99

1010
dev_dependencies:
1111
build_runner: ^1.0.0
12-
json_serializable: ^3.2.0
12+
json_serializable: ^4.0.0
1313
```
1414
1515
Annotate your code with classes defined in

example/pubspec.yaml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,17 @@ environment:
44
sdk: '>=2.12.0-0 <3.0.0'
55

66
dependencies:
7-
json_annotation: ^3.0.0
7+
json_annotation: ^4.0.0
88

99
dev_dependencies:
1010
build_runner: ^1.0.0
1111

1212
# Used by tests. Not required to use `json_serializable`.
1313
build_verify: ^1.0.0
1414

15-
json_serializable: ^3.2.0
15+
json_serializable: ^4.0.0
1616

1717
# Used by tests. Not required to use `json_serializable`.
1818
path: ^1.8.0
1919
# Used by tests. Not required to use `json_serializable`.
2020
test: ^1.16.0
21-
22-
dependency_overrides:
23-
json_annotation:
24-
path: ../json_annotation
25-
json_serializable:
26-
path: ../json_serializable

example/test/readme_test.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ void _expect(String fileName) {
2525

2626
const _pubspecContent = r'''
2727
dependencies:
28-
json_annotation: ^3.0.0
28+
json_annotation: ^4.0.0
2929
3030
dev_dependencies:
3131
build_runner: ^1.0.0
32-
json_serializable: ^3.2.0
32+
json_serializable: ^4.0.0
3333
''';

0 commit comments

Comments
 (0)