feat: update launch configurations and build scripts for staging and production environments

This commit is contained in:
Achintha Isuru
2026-03-09 17:27:56 -04:00
parent 093cc4e0a4
commit fe98462431
4 changed files with 120 additions and 35 deletions

View File

@@ -40,10 +40,12 @@ distribute-android-script: &distribute-android-script
name: 🚀 🤖 Distribute Android to Firebase App Distribution
script: |
# Distribute Android APK
# Note: With flavors the APK is in a flavor-specific subdirectory
APP_PATH=$(find apps/mobile/apps -name "app-${ENV}-release.apk" -o -name "app-release.apk" | head -n 1)
# With flavors the APK is at: build/app/outputs/apk/<flavor>/release/app-<flavor>-release.apk
APP_PATH=$(find apps/mobile/apps -name "app-${ENV}-release.apk" | head -n 1)
if [ -z "$APP_PATH" ]; then
echo "No APK found!"
echo "No APK found matching app-${ENV}-release.apk — was --flavor ${ENV} applied during build?"
echo "Listing all APKs found:"
find apps/mobile/apps -name "*.apk" -type f
exit 1
fi
echo "Found APK at: $APP_PATH"