Refactor/dart notification (#1740)

* refactor: notification send

* refactor: rename dart-notify to flowy-notification

* ci: fix clippy wanrings

* ci: fix rust code converage
This commit is contained in:
Nathan.fooo
2023-01-26 15:40:23 +08:00
committed by GitHub
parent 67f07463f0
commit 347245aaa1
80 changed files with 269 additions and 231 deletions

View File

@ -190,4 +190,24 @@ script = [
exec cmd.exe /c flutter packages pub run easy_localization:generate -S assets/translations/ -f keys -o locale_keys.g.dart -S assets/translations -s en.json
exec cmd.exe /c flutter packages pub run build_runner build --delete-conflicting-outputs
"""
]
]
[tasks.dry_code_generation]
script_runner = "@shell"
script = [
"""
cd app_flowy
flutter packages pub run easy_localization:generate -S assets/translations/ -f keys -o locale_keys.g.dart -S assets/translations -s en.json
flutter packages pub run build_runner build --delete-conflicting-outputs
"""
]
[tasks.dry_code_generation.windows]
script_runner = "@duckscript"
script = [
"""
cd ./app_flowy/
exec cmd.exe /c flutter packages pub run easy_localization:generate -S assets/translations/ -f keys -o locale_keys.g.dart -S assets/translations -s en.json
exec cmd.exe /c flutter packages pub run build_runner build --delete-conflicting-outputs
"""
]

View File

@ -90,7 +90,7 @@ script = [
CARGO_INCREMENTAL=0 \
RUSTFLAGS='-C instrument-coverage' \
LLVM_PROFILE_FILE='prof-%p-%m.profraw' \
cargo test --no-default-features --features="sync"
cargo test --no-default-features --features="sync,rev-sqlite"
"""
]

View File

@ -1,4 +1,4 @@
[tasks.dart_clean]
[tasks.flutter_clean]
run_task = { name = [
"rust_lib_clean",
"rm_macro_build_cache",