@echo off
setlocal
cd /d "%~dp0"
chcp 65001 >nul
cls
echo ============================================================
echo OK ITHAKI V249476 - CLEAN BUILD AND INSTALL
echo TIME COLORS / POLLS / BIL PROFILE / ADMIN CONTACT / PREVIEW
echo ============================================================
call gradlew.bat --stop >nul 2>nul
call gradlew.bat clean assembleDebug
if errorlevel 1 (echo BUILD_FAILED&pause&exit /b 1)
set "APK=app\build\outputs\apk\debug\app-debug.apk"
if not exist "%APK%" (echo APK_NOT_FOUND&pause&exit /b 1)
copy /y "%APK%" "OK_ITHAKI_V249476_TIME_COLORS_POLLS_BIL_PROFILE_ADMIN_PREVIEW_DEBUG.apk" >nul
call 03_INSTALL_APK_V249476.bat
exit /b %errorlevel%
