Skip to content

chore: update dependencies #712

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

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion generator/lib/src/code_builder.dart
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,8 @@ class CodeBuilder extends Builder {
var code = CodeChunks.objectboxDart(model, imports, pubspec);

try {
code = DartFormatter().format(code);
code = DartFormatter(languageVersion: DartFormatter.latestLanguageVersion)
.format(code);
} finally {
// Write the code even after a formatter error so it's easier to debug.
final codeId = AssetId(
Expand Down
6 changes: 3 additions & 3 deletions generator/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ environment:

dependencies:
objectbox: 4.1.0
analyzer: '>=5.2.0 <7.0.0' # 5.1.0 has a bug where DartType.element has been removed.
analyzer: '>=6.0.0 <8.0.0' # 5.1.0 has a bug where DartType.element has been removed.
build: ^2.0.0
collection: ^1.15.0
dart_style: ^2.0.0
dart_style: ^3.0.1
glob: ^2.0.0
path: ^1.8.0
source_gen: ^1.0.0
source_gen: ^2.0.0
pubspec_parse: ^1.0.0
yaml: ^3.0.0
http: '>=0.13.5 <2.0.0'
Expand Down