Unverified Commit 2b14ac1e authored by Greg Spencer's avatar Greg Spencer Committed by GitHub

Fix setting of ANDROID_HOME in deploy_gallery.sh (#21080)

ANDROID_HOME should be coming from the env, and it wasn't: it was being set in the script.
parent f88d2d9c
......@@ -28,14 +28,14 @@ if [[ "$SHARD" = "deploy_gallery" ]]; then
version="$(<version)"
if [[ "$OS" == "linux" ]]; then
echo "Building Flutter Gallery $version for Android..."
export ANDROID_HOME="$PWD/android-sdk"
# ANDROID_HOME must be set in the env.
(
cd examples/flutter_gallery
flutter build apk --release -t lib/main_publish.dart
)
echo "Android Flutter Gallery built"
if [[ -z "$CIRRUS_PULL_REQUEST" && "$CIRRUS_BRANCH" == "dev" && "$version" != *"pre"* ]]; then
echo "Deploying Flutter Gellery $version to Play Store..."
echo "Deploying Flutter Gallery $version to Play Store..."
(
cd examples/flutter_gallery/android
bundle install
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment