feat: update launch configurations and build scripts for staging and production environments
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user