File tree 3 files changed +15
-10
lines changed
3 files changed +15
-10
lines changed Original file line number Diff line number Diff line change @@ -5,11 +5,11 @@ dependencies to your `pubspec.yaml`.
5
5
6
6
``` yaml
7
7
dependencies :
8
- json_annotation : ^4.7 .0
8
+ json_annotation : ^4.8 .0
9
9
10
10
dev_dependencies :
11
- build_runner : ^2.0.0
12
- json_serializable : ^6.0 .0
11
+ build_runner : ^2.3.3
12
+ json_serializable : ^6.6 .0
13
13
` ` `
14
14
15
15
Annotate your code with classes defined in
@@ -23,7 +23,7 @@ Annotate your code with classes defined in
23
23
Run `dart run build_runner build` to generate files into your source directory.
24
24
25
25
` ` ` console
26
- > pub run build_runner build
26
+ > dart pub run build_runner build
27
27
[INFO] ensureBuildScript: Generating build script completed, took 368ms
28
28
[INFO] BuildDefinition: Reading cached asset graph completed, took 54ms
29
29
[INFO] BuildDefinition: Checking for updates since last build completed, took 663ms
Original file line number Diff line number Diff line change @@ -5,24 +5,29 @@ environment:
5
5
sdk : ' >=2.18.0 <3.0.0'
6
6
7
7
dependencies :
8
- json_annotation : ^4.7 .0
8
+ json_annotation : ^4.8 .0
9
9
10
10
dev_dependencies :
11
11
# Used by tests. Not required to use `json_serializable`.
12
12
_json_serial_shared_test :
13
13
path : ../shared_test
14
- build_runner : ^2.0.0
14
+
15
+ # REQUIRED!
16
+ build_runner : ^2.3.3
15
17
16
18
# Used by tests. Not required to use `json_serializable`.
17
19
build_verify : ^3.0.0
18
20
19
- json_serializable : ^6.0.0
21
+ # REQUIRED!
22
+ json_serializable : ^6.6.0
20
23
21
24
# Not required to use `json_serializable`.
22
25
lints : ^2.0.0
23
26
path : ^1.8.0
24
27
test : ^1.16.0
25
28
29
+ # This section is used to verify changes to these packages. Do not include in
30
+ # your code!
26
31
dependency_overrides :
27
32
json_annotation :
28
33
path : ../json_annotation
Original file line number Diff line number Diff line change @@ -25,9 +25,9 @@ void _expect(String fileName) {
25
25
26
26
const _pubspecContent = r'''
27
27
dependencies:
28
- json_annotation: ^4.7 .0
28
+ json_annotation: ^4.8 .0
29
29
30
30
dev_dependencies:
31
- build_runner: ^2.0.0
32
- json_serializable: ^6.0 .0
31
+ build_runner: ^2.3.3
32
+ json_serializable: ^6.6 .0
33
33
''' ;
You can’t perform that action at this time.
0 commit comments