@echo off echo ======================================== echo UNIONFLOW - TEST DE L'APPLICATION echo ======================================== echo. echo [1/3] Analyse du code Flutter... flutter analyze --no-fatal-infos > analysis_result.txt 2>&1 if %ERRORLEVEL% EQU 0 ( echo ✅ Analyse terminée avec succès ) else ( echo ❌ Erreurs détectées dans l'analyse ) echo. echo [2/3] Compilation de l'application... flutter build apk --debug > build_result.txt 2>&1 if %ERRORLEVEL% EQU 0 ( echo ✅ Compilation réussie ) else ( echo ❌ Erreurs de compilation détectées ) echo. echo [3/3] Affichage des résultats... echo. echo === RÉSULTATS DE L'ANALYSE === type analysis_result.txt | findstr /C:"error" /C:"issues found" echo. echo === RÉSULTATS DE LA COMPILATION === type build_result.txt | findstr /C:"error" /C:"Built" /C:"FAILURE" echo. echo ======================================== echo TEST TERMINÉ echo ======================================== pause