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.
This commit is contained in:
Greg Spencer
2018-08-27 22:17:22 -07:00
committed by GitHub
parent f88d2d9c12
commit 2b14ac1efc

View File

@@ -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