-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall_debug.bat
More file actions
23 lines (19 loc) · 833 Bytes
/
Copy pathinstall_debug.bat
File metadata and controls
23 lines (19 loc) · 833 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
@echo off
set JAVA_HOME=C:\Program Files\Android\Android Studio\jbr
set ANDROID_HOME=C:\Users\davda\AppData\Local\Android\Sdk
set PATH=%JAVA_HOME%\bin;%ANDROID_HOME%\platform-tools;%PATH%
echo [DEBUG] Building...
call gradlew.bat :androidApp:assembleDebug
if %ERRORLEVEL% NEQ 0 ( echo BUILD FAILED & exit /b %ERRORLEVEL% )
echo [DEBUG] Installing...
adb install -r androidApp\build\outputs\apk\debug\androidApp-debug.apk
if %ERRORLEVEL% NEQ 0 (
echo Signature mismatch, uninstalling previous version...
adb uninstall com.botiquinvirtual.android
echo Retrying install...
adb install androidApp\build\outputs\apk\debug\androidApp-debug.apk
if %ERRORLEVEL% NEQ 0 ( echo INSTALL FAILED & exit /b %ERRORLEVEL% )
)
echo [DEBUG] Launching...
adb shell am start -n com.botiquinvirtual.android/.MainActivity
echo DONE