From 72095f74fd93c75329488c80bafd6af7ff12e60b Mon Sep 17 00:00:00 2001 From: Guzinowich Date: Mon, 3 Aug 2026 13:22:10 +0300 Subject: [PATCH] fix: locate apk in agp 9 output dir --- scripts/build-android-apk.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/build-android-apk.sh b/scripts/build-android-apk.sh index a41727f..07e13dd 100755 --- a/scripts/build-android-apk.sh +++ b/scripts/build-android-apk.sh @@ -28,7 +28,7 @@ TREZOR_BRIDGE="${TREZOR_BRIDGE:-false}" TREZOR_BRIDGE_URL="${TREZOR_BRIDGE_URL:-http://10.0.2.2:21325}" E2E_BACKEND="local" GRADLE_TASK="assembleDevDebug" -APK_FLAVOR_DIR="dev/debug" +APK_VARIANT_DIR="devDebug" OUT_FILENAME="bitkit_e2e.apk" if [[ "$BACKEND" == "regtest" ]]; then @@ -38,7 +38,7 @@ elif [[ "$BACKEND" == "local" ]]; then elif [[ "$BACKEND" == "mainnet" ]]; then E2E_BACKEND="network" GRADLE_TASK="assembleMainnetDebug" - APK_FLAVOR_DIR="mainnet/debug" + APK_VARIANT_DIR="mainnetDebug" OUT_FILENAME="bitkit_e2e_mainnet.apk" else echo "ERROR: Unsupported BACKEND value: $BACKEND" >&2 @@ -55,7 +55,7 @@ E2E=true \ popd >/dev/null # Find the universal APK -APK_DIR="$ANDROID_ROOT/app/build/outputs/apk/$APK_FLAVOR_DIR" +APK_DIR="$ANDROID_ROOT/app/build/outputs/bitkit/$APK_VARIANT_DIR" # shellcheck disable=SC2012 APK_PATH="$(ls -t "$APK_DIR"/bitkit-*-universal.apk 2>/dev/null | head -n 1 || true)"