English
Development environment
Moodiary is a Flutter + Rust monorepo. Run the commands below from the repository root.
Tools you need
| Tool | Version | Notes |
|---|---|---|
| FVM | Not pinned | Selects the SDK from .fvmrc |
| Flutter / Dart | 3.50.1 / 3.14.0 | .fvmrc pins Flutter; pubspec SDK constraints are lower bounds |
| Rust | 1.99.1 stable | Requires rustup; each native package pins it in rust/rust-toolchain.toml |
| JDK | 21 | Android's daemon JVM is pinned to 21 |
| Android SDK | API 36, NDK 28.2.13676358 | AGP 9.3.1 / Gradle 9.5.0; targets arm64, Android API 28 or later |
| Xcode | CI uses 27.1 | iOS deployment target: 16.0; iOS development requires macOS |
| melos | 8.10.1 | Pinned in the root pubspec.yaml; its CLI must be on PATH (used by task.dart) |
| cargo-about | 0.9.2 | Generates the third-party license manifest at build time |
Rustup selects the pinned toolchain when Cargo runs inside a package's rust/ directory; the repository root has no Rust toolchain file.
Bootstrapping
bash
git clone https://github.com/ZhuJHua/moodiary.git
cd moodiary
fvm use
fvm dart pub global activate melos 8.10.1
fvm dart run melos bs # melos bootstrap: syncs shared deps, runs pub get, updates IDE files; no codegen
cargo install cargo-about --version 0.9.2 --lockedVerifying your setup
bash
fvm dart tool/task.dart analyze # generated-binding consistency + layer check + flutter analyze
fvm dart tool/task.dart test # affected packages; use --all for the whole repositorySee Testing for Rust checks and build-hook details.
Running the app
bash
fvm dart tool/task.dart run -- --flavor production # Android
fvm dart tool/task.dart run # iOS; select an iOS device
fvm dart tool/task.dart run -- --flavor alpha --releaseExtra Flutter arguments go after --. The supported app targets are Android (build-apk, production flavor by default) and iOS (build-ios).
Next steps
- Repository structure and layers: how the code is organized.
- Common commands: everyday commands.
- FAQ: start here when a build fails.