feat: add debug build and clean commands

Made-with: Cursor
This commit is contained in:
cottongin
2026-03-11 04:32:54 -04:00
parent 1e5ba4e4fa
commit 741b8cb30a

View File

@@ -257,9 +257,31 @@ build_release() {
fi fi
} }
# Placeholder functions — implemented in subsequent tasks build_debug() {
build_debug() { warn "Not yet implemented"; } info "Building debug APK..."
clean_build() { warn "Not yet implemented"; } echo ""
if ./gradlew assembleDebug; then
copy_apk "debug"
else
echo ""
error "Build failed. Check the output above for details."
return 1
fi
}
clean_build() {
info "Cleaning build artifacts..."
./gradlew clean 2>/dev/null
if [[ -d "$DIST_DIR" ]]; then
rm -rf "$DIST_DIR"
success "Removed $DIST_DIR/"
fi
success "Clean complete."
}
# --- Main --- # --- Main ---
preflight_check preflight_check