feat(kotlin-compose): design system + 33 components + gallery_kt + e2e android emulator + scaffolder fixes

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-05-11 16:28:50 +02:00
parent 0bdb8454e1
commit cb6d9e61d1
152 changed files with 148262 additions and 25 deletions
+38
View File
@@ -0,0 +1,38 @@
#!/usr/bin/env bash
# gradle_clean — Limpia build artifacts de un proyecto Android.
#
# Uso como libreria: source bash/functions/infra/gradle_clean.sh
# Uso directo: bash bash/functions/infra/gradle_clean.sh <project_dir>
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
# shellcheck source=./gradle_run.sh
source "$SCRIPT_DIR/gradle_run.sh"
# ---------------------------------------------------------------------------
# gradle_clean <project_dir>
#
# Ejecuta `gradlew clean` en el proyecto y luego elimina los directorios
# de cache .gradle y build (best-effort).
#
# Exits:
# 0 — gradle clean exitoso (los rm son best-effort, no afectan exit code)
# * — exit code propagado de gradle_run / gradlew
# ---------------------------------------------------------------------------
gradle_clean() {
local project_dir="$1"
gradle_run "$project_dir" "clean" || return $?
# Best-effort: eliminar caches locales; ignorar errores si no existen
rm -rf "${project_dir}/.gradle" 2>/dev/null || true
rm -rf "${project_dir}/build" 2>/dev/null || true
return 0
}
# ---------------------------------------------------------------------------
# Ejecucion directa
# ---------------------------------------------------------------------------
if [[ "${BASH_SOURCE[0]}" == "$0" ]]; then
gradle_clean "$@"
fi