From 97699cc609a5365fb1607bd0b11c8ab7961e2d21 Mon Sep 17 00:00:00 2001 From: Chris Yang Date: Tue, 1 Oct 2019 04:10:11 +0800 Subject: [PATCH] Adding 'pub get' to the 'compile_xxxx.sh' in the Scenario app (flutter/engine#12699) --- .../src/flutter/testing/scenario_app/compile_android_aot.sh | 5 +++++ engine/src/flutter/testing/scenario_app/compile_ios_aot.sh | 5 +++++ engine/src/flutter/testing/scenario_app/compile_ios_jit.sh | 5 +++++ 3 files changed, 15 insertions(+) diff --git a/engine/src/flutter/testing/scenario_app/compile_android_aot.sh b/engine/src/flutter/testing/scenario_app/compile_android_aot.sh index eb22ebdafd..bff6564ae8 100755 --- a/engine/src/flutter/testing/scenario_app/compile_android_aot.sh +++ b/engine/src/flutter/testing/scenario_app/compile_android_aot.sh @@ -20,6 +20,11 @@ if [[ ! -d "$DEVICE_TOOLS" ]]; then exit 1 fi +PUB_VERSION=$($HOST_TOOLS/dart-sdk/bin/pub --version) +echo "Using Pub ${PUB_VERSION} from $HOST_TOOLS/dart-sdk/bin/pub" + +$HOST_TOOLS/dart-sdk/bin/pub get + echo "Using dart from $HOST_TOOLS, gen_snapshot from $DEVICE_TOOLS." OUTDIR="${BASH_SOURCE%/*}/build/android" diff --git a/engine/src/flutter/testing/scenario_app/compile_ios_aot.sh b/engine/src/flutter/testing/scenario_app/compile_ios_aot.sh index 6059652543..45ec601689 100755 --- a/engine/src/flutter/testing/scenario_app/compile_ios_aot.sh +++ b/engine/src/flutter/testing/scenario_app/compile_ios_aot.sh @@ -20,6 +20,11 @@ if [[ ! -d "$DEVICE_TOOLS" ]]; then exit 1 fi +PUB_VERSION=$($HOST_TOOLS/dart-sdk/bin/pub --version) +echo "Using Pub ${PUB_VERSION} from $HOST_TOOLS/dart-sdk/bin/pub" + +$HOST_TOOLS/dart-sdk/bin/pub get + echo "Using dart from $HOST_TOOLS, gen_snapshot from $DEVICE_TOOLS." OUTDIR="${BASH_SOURCE%/*}/build/ios" diff --git a/engine/src/flutter/testing/scenario_app/compile_ios_jit.sh b/engine/src/flutter/testing/scenario_app/compile_ios_jit.sh index 565089f562..fc27b4854b 100755 --- a/engine/src/flutter/testing/scenario_app/compile_ios_jit.sh +++ b/engine/src/flutter/testing/scenario_app/compile_ios_jit.sh @@ -20,6 +20,11 @@ if [[ ! -d "$DEVICE_TOOLS" ]]; then exit 1 fi +PUB_VERSION=$($HOST_TOOLS/dart-sdk/bin/pub --version) +echo "Using Pub ${PUB_VERSION} from $HOST_TOOLS/dart-sdk/bin/pub" + +$HOST_TOOLS/dart-sdk/bin/pub get + echo "Using dart from $HOST_TOOLS, gen_snapshot from $DEVICE_TOOLS." OUTDIR="${BASH_SOURCE%/*}/build/ios"