16 lines
473 B
Bash
Executable File
16 lines
473 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Build AAB produzione firmato per Google Play Console.
|
|
set -euo pipefail
|
|
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
|
|
ANDROID_DIR="$ROOT/native/android"
|
|
API_BASE_URL="${API_BASE_URL:-https://www.matchlivetv.it}"
|
|
|
|
cd "$ANDROID_DIR"
|
|
chmod +x gradlew
|
|
./gradlew clean bundleProdRelease -PAPI_BASE_URL="$API_BASE_URL"
|
|
|
|
AAB="$ANDROID_DIR/app/build/outputs/bundle/prodRelease/app-prod-release.aab"
|
|
echo "AAB: $AAB"
|
|
echo "API_BASE_URL=$API_BASE_URL"
|
|
ls -lh "$AAB"
|