-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (19 loc) · 763 Bytes
/
Copy pathMakefile
File metadata and controls
27 lines (19 loc) · 763 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
.PHONY: test test-rust test-flutter fmt lint build-android clean
RUST_DIR := rust
MOBILE_DIR := mobile
test: test-rust test-flutter
test-rust:
cargo test --workspace --manifest-path $(RUST_DIR)/Cargo.toml
test-flutter:
cd $(MOBILE_DIR) && flutter test
fmt:
cargo fmt --all --manifest-path $(RUST_DIR)/Cargo.toml
lint:
cargo clippy --workspace --all-targets --manifest-path $(RUST_DIR)/Cargo.toml -- -D warnings
cd $(MOBILE_DIR) && flutter analyze
build-android:
cd $(MOBILE_DIR) && bash tool/build_native.sh
cd $(MOBILE_DIR) && flutter build apk --release --dart-define=APP_VERSION=$$(bash tool/app_version.sh --semver)
clean:
cargo clean --manifest-path $(RUST_DIR)/Cargo.toml
if [ -d $(MOBILE_DIR) ]; then cd $(MOBILE_DIR) && flutter clean; fi