fix tiny bugs with make run-android

This commit is contained in:
Siddarth Kumar 2024-06-19 18:35:00 +05:30
parent 1803fda3ab
commit babcca2e1b
No known key found for this signature in database
GPG Key ID: 599D10112BF518DB
2 changed files with 3 additions and 3 deletions

View File

@ -141,7 +141,7 @@ in stdenv.mkDerivation rec {
|| exit 1
popd > /dev/null
'';
doCheck = buildType != debug;
doCheck = buildType != "debug";
checkPhase = ''
ls ${apksPath}/*.apk \
| xargs -n1 ${pkgs.unzip}/bin/unzip -qql \

4
scripts/run-android.sh Normal file → Executable file
View File

@ -5,7 +5,7 @@ GIT_ROOT=$(cd "${BASH_SOURCE%/*}" && git rev-parse --show-toplevel)
ADB_INSTALL_LOG_FILE="${GIT_ROOT}/logs/adb_install.log"
ADB_SHELL_MONKEY_LOG_FILE="${GIT_ROOT}/logs/adb_shell_monkey.log"
Generate android debug build.
# Generate android debug build.
export BUILD_ENV=debug
export BUILD_TYPE=debug
export BUILD_NUMBER=99999
@ -13,7 +13,7 @@ export ANDROID_ABI_SPLIT=false
export ANDROID_ABI_INCLUDE="armeabi-v7a;arm64-v8a;x86;x86_64"
"${GIT_ROOT}/scripts/build-android.sh"
Install the APK on running emulator or android device.
# Install the APK on running emulator or android device.
installAndLaunchApp() {
adb install -r ./result/app-debug.apk > "${ADB_INSTALL_LOG_FILE}" 2>&1
"${GIT_ROOT}/scripts/wait-for-metro-port.sh" 2>&1