@echo off
chcp 65001 >nul
title TEM Receiver - Android Build

echo ================================
echo  TEM Receiver - Run on Android
echo ================================

set "JAVA_HOME=D:\Program Files\Android\Android Studio\jbr"
set "ANDROID_HOME=D:\ProgramData\AndroidSdk"
set "PATH=%JAVA_HOME%\bin;%ANDROID_HOME%\platform-tools;%PATH%"

echo [1/3] Checking ADB device...
adb devices
echo.

echo [2/3] Starting Metro + building APK...
cd /d "%~dp0"
npx expo run:android

echo.
echo Done.
pause
