Skip to content

Commit

Permalink
Explicitly format generated files with workspace line length setting
Browse files Browse the repository at this point in the history
  • Loading branch information
erdemyerebasmaz committed May 7, 2024
1 parent 8ab7827 commit dd0fc1b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libs/sdk-flutter/justfile
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,12 @@ gen: codegen && ffigen
codegen:
mkdir -p ./lib/generated
flutter_rust_bridge_codegen generate
dart format -l 110 ./lib/generated

# Generate FFI bindings
ffigen:
flutter pub run ffigen --config ffigen.yaml
dart format -l 110 ./lib/breez_sdk_core_bindings_generated.dart

# Builds local library
build:
Expand Down Expand Up @@ -116,4 +118,4 @@ link:
# Static code analysis
check:
flutter analyze --fatal-infos .
# dart format -o none --set-exit-if-changed -l 110 .
dart format -o none --set-exit-if-changed -l 110 .
1 change: 1 addition & 0 deletions libs/sdk-flutter/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ flutter_rust_bridge:
cargo install flutter_rust_bridge_codegen --version 2.0.0-dev.33
mkdir -p ./lib/generated
flutter_rust_bridge_codegen generate
dart format -l 110 ./lib/generated

ios: $(SOURCES) flutter_rust_bridge
make -C ../sdk-bindings bindings-swift
Expand Down

0 comments on commit dd0fc1b

Please sign in to comment.