[tasks.up_backend] description = "Start PostgreSQL + backend API (Go/Gin)" run = [ "docker compose up -d postgres --wait", "cd backend && go run cmd/server/main.go", ] [tasks.up_mobile] description = "Build + install Android debug app (device or emulator)" dir = "mobile-kotlin" usage = ''' arg "[target]" { help "Where to install" choices "device" "emulator" default "emulator" } ''' run = ''' #!/usr/bin/env bash set -euo pipefail ./gradlew :app:assembleDebug -q APK="app/build/outputs/apk/debug/app-debug.apk" if [ "${usage_target?}" = "emulator" ]; then adb -e install -r "$APK" else adb -d install -r "$APK" fi ''' [tasks.test] description = "Run all tests (Go + Kotlin)" run = ''' set -euo pipefail cd backend && go test ./... cd ../mobile-kotlin && ./gradlew :app:testDebugUnitTest -q ''' [tasks.build] description = "Build all artifacts (Go binary + Android APK)" run = ''' set -euo pipefail VERSION=$(cat VERSION) mkdir -p backend/bin cd backend && go build -ldflags "-X main.version=$VERSION" -o bin/vaultdrop-server cmd/server/main.go cd ../mobile-kotlin && ./gradlew :app:assembleDebug -q ''' [tasks.lint] description = "Lint all code (staticcheck + Android Lint)" run = ''' set -euo pipefail cd backend && staticcheck ./... cd ../mobile-kotlin && ./gradlew :app:lint -q '''