Skip to content

Commit de4382c

Browse files
committed
update build config for test apk
1 parent 2a27c7c commit de4382c

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

.github/workflows/build-android-e2e.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ jobs:
9393
elif [[ "${{ inputs.build_type }}" == "main" ]]; then
9494
{
9595
echo "apk-target-path=android/app/build/outputs/apk/prod/release"
96-
echo "test-apk-target-path=android/app/build/outputs/apk/androidTest/prod/release"
96+
echo "test-apk-target-path=android/app/build/outputs/apk/androidTest/debug/release"
9797
echo "aab-target-path=android/app/build/outputs/bundle/prodRelease"
9898
echo "artifact_name=app-prod-release"
9999
} >> "$GITHUB_OUTPUT"

scripts/build.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -551,10 +551,11 @@ generateAndroidBinary() {
551551
# Create flavor configuration
552552
flavorConfiguration="app:assemble${flavor}${configuration}"
553553

554+
# Create test configuration
555+
testConfiguration="app:assemble${flavor}DebugAndroidTest"
556+
554557
echo "Generating Android binary for ($flavor) flavor with ($configuration) configuration"
555558
if [ "$configuration" = "Release" ] ; then
556-
# Create test configuration
557-
testConfiguration="app:assemble${flavor}ReleaseAndroidTest"
558559

559560
# Generate Android binary
560561
./gradlew $flavorConfiguration $testConfiguration --build-cache --parallel
@@ -570,8 +571,6 @@ generateAndroidBinary() {
570571
echo "Generating checksum for ($flavor) flavor with ($configuration) configuration"
571572
yarn $checkSumCommand
572573
elif [ "$configuration" = "Debug" ] ; then
573-
# Create test configuration
574-
testConfiguration="app:assemble${flavor}DebugAndroidTest"
575574
# Generate Android binary
576575
./gradlew $flavorConfiguration $testConfiguration --build-cache --parallel
577576
fi

0 commit comments

Comments
 (0)