version: "3" silent: true # This makes all tasks silent by default vars: FLUTTER_APP: "{{.FLUTTER_APP | default \"/Volumes/LUM/source/letusmsg_proj/app/letusmsg_app/flutter_src\"}}" tasks: # ── Dependency sync ────────────────────────────────────────────────────── sync: desc: "Update Cargo.lock to latest trunk of lum_ccc_rust and clear build cache" summary: | Run this after pushing changes to lum_ccc_rust. Updates rust/Cargo.lock to the new HEAD commit and clears the Cargokit build cache so the next Flutter build picks up the changes. Then commit and push lum_ccc_fplugin. cmds: - ./scripts/dev-sync.sh --update local: desc: "Switch Cargo.toml to local path deps (fast dev iteration)" summary: | Switches ccc-crypto-core and ccc-crypto-wolfssl to path deps pointing at your local lum_ccc_rust checkout. Use for rapid iteration without git fetch round-trips. Run 'task git' to switch back before committing. cmds: - ./scripts/dev-sync.sh --local git: desc: "Switch Cargo.toml back to git deps (CI / Flutter builds)" cmds: - ./scripts/dev-sync.sh --git # ── Build cache ────────────────────────────────────────────────────────── clean:cache: desc: "Clear Cargokit Flutter build cache for ccc_cryptography" cmds: - | CACHE="{{.FLUTTER_APP}}/build/ccc_cryptography" if [ -d "$CACHE" ]; then rm -rf "$CACHE" echo "Cleared: $CACHE" else echo "Nothing to clear at $CACHE" fi # ── Release ────────────────────────────────────────────────────────────── release: desc: "Commit updated Cargo.lock and push lum_ccc_fplugin" summary: | Run after 'task sync'. Stages Cargo.lock and android_environment.dart, commits with a standard message, and pushes. cmds: - git add rust/Cargo.lock - "git diff --cached --quiet || git commit -m 'MOD: sync Cargo.lock to latest lum_ccc_rust trunk'" - git push gitea trunk