Skip to content

Commit 9985747

Browse files
committed
chore: update dependencies
Update analyzer to ">=6.0.0 <8.0.0" - Update dart_style to ^3.0.1 and use latest language version - Update source_gen to ^2.0.0
1 parent 7ef9de4 commit 9985747

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

Diff for: generator/lib/src/code_builder.dart

+2-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,8 @@ class CodeBuilder extends Builder {
159159
var code = CodeChunks.objectboxDart(model, imports, pubspec);
160160

161161
try {
162-
code = DartFormatter().format(code);
162+
code = DartFormatter(languageVersion: DartFormatter.latestLanguageVersion)
163+
.format(code);
163164
} finally {
164165
// Write the code even after a formatter error so it's easier to debug.
165166
final codeId = AssetId(

Diff for: generator/pubspec.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ environment:
1010

1111
dependencies:
1212
objectbox: 4.1.0
13-
analyzer: '>=5.2.0 <7.0.0' # 5.1.0 has a bug where DartType.element has been removed.
13+
analyzer: '>=6.0.0 <8.0.0' # 5.1.0 has a bug where DartType.element has been removed.
1414
build: ^2.0.0
1515
collection: ^1.15.0
16-
dart_style: ^2.0.0
16+
dart_style: ^3.0.1
1717
glob: ^2.0.0
1818
path: ^1.8.0
19-
source_gen: ^1.0.0
19+
source_gen: ^2.0.0
2020
pubspec_parse: ^1.0.0
2121
yaml: ^3.0.0
2222
http: '>=0.13.5 <2.0.0'

0 commit comments

Comments
 (0)