fix tiny bugs with make run-android
This commit is contained in:
parent
1803fda3ab
commit
babcca2e1b
|
@ -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 \
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue