Skip to content

Commit 36d15a6

Browse files
committed
call e2e function direct in release
1 parent 25b3b86 commit 36d15a6

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

scripts/build.sh

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

554-
# Create test configuration
555-
testConfiguration="app:assemble${flavor}DebugAndroidTest"
556-
557554
echo "Generating Android binary for ($flavor) flavor with ($configuration) configuration"
558555
if [ "$configuration" = "Release" ] ; then
559-
560-
# Generate Android binary
561-
./gradlew $flavorConfiguration $testConfiguration --build-cache --parallel
556+
# Check if this is an E2E build
557+
if [ "$METAMASK_ENVIRONMENT" = "e2e" ] || [ "$E2E" = "true" ] ; then
558+
buildAndroidReleaseE2E()
559+
else
560+
# Generate Android binary only
561+
./gradlew $flavorConfiguration --build-cache --parallel
562+
fi
562563

563564
# Generate AAB bundle
564565
bundleConfiguration="bundle${flavor}Release"
@@ -571,6 +572,8 @@ generateAndroidBinary() {
571572
echo "Generating checksum for ($flavor) flavor with ($configuration) configuration"
572573
yarn $checkSumCommand
573574
elif [ "$configuration" = "Debug" ] ; then
575+
# Create test configuration
576+
testConfiguration="app:assemble${flavor}DebugAndroidTest"
574577
# Generate Android binary
575578
./gradlew $flavorConfiguration $testConfiguration --build-cache --parallel
576579
fi
@@ -802,7 +805,11 @@ if [ -z "$METAMASK_ENVIRONMENT" ]; then
802805
exit 1
803806
else
804807
echo "METAMASK_ENVIRONMENT is set to: $METAMASK_ENVIRONMENT"
808+
805809
fi
810+
# Update Expo channel configuration based on environment
811+
echo "Updating Expo channel configuration..."
812+
node "${__DIRNAME__}/update-expo-channel.js"
806813

807814
if [ "$PLATFORM" == "ios" ]; then
808815
# we don't care about env file in CI

0 commit comments

Comments
 (0)