Some checks failed
field-tech-android / build-apk (push) Failing after 8m56s
App technicien : appairage 1x (QR), géorepérage natif en arrière-plan (app fermée) -> checkpoints au hub /field/ts, scan série/MAC on-device MLKit. UI réutilisée depuis le hub (/field). APK Android buildé (debug, 19 Mo, arm64-v8a + armeabi-v7a). - apps/field-tech : Capacitor 6 + Vite ; src/main.js (appairage @capacitor/preferences + BackgroundGeolocation.addGeofences + redirection /field) ; projet android/ avec les 4 correctifs Gradle commités (force work-runtime 2.9.1, minSdk 24, repos maven xms.g + Huawei, googlePlayServicesLocationVersion 21.0.1) ; abiFilters arm (APK 32->19 Mo). - README : recette de build complète (toolchain M4, les 4 fixes, install/appairage) ; BUILD-ANDROID.md (Docker + Android Studio + release signée) ; CI-SETUP.md (runner Gitea). - CI Gitea Actions (.gitea/workflows) : android (runner Linux HORS prod, cache Gradle/npm -> artefact APK) + ios (runner macOS, workflow_dispatch, en attente compte Apple). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
15 lines
816 B
Bash
15 lines
816 B
Bash
#!/usr/bin/env bash
|
|
# Compile l'APK Android dans le conteneur (code monté dans /app). DEBUG par défaut (sideload interne, sans licence
|
|
# Transistorsoft = mode dev). Pour RELEASE : APP_BUILD=release + clé licence (meta-data) + keystore (voir BUILD-ANDROID.md).
|
|
set -e
|
|
cd /app
|
|
echo "── npm install ──"; npm install --no-audit --no-fund
|
|
echo "── vite build (→ www) ──"; npm run build
|
|
[ -d android ] || { echo "── cap add android ──"; npx cap add android; }
|
|
echo "── cap sync ──"; npx cap sync android
|
|
cd android
|
|
TASK="assembleDebug"; [ "${APP_BUILD:-debug}" = "release" ] && TASK="assembleRelease"
|
|
echo "── gradle $TASK ──"; ./gradlew "$TASK" --no-daemon --stacktrace
|
|
APK=$(find app/build/outputs/apk -name '*.apk' | head -1)
|
|
echo "✅ APK : apps/field-tech/android/${APK}"
|