From 138c3ff4bbd9532cf660a1ecbac2c0cfc4c52389 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 (#12699) --- testing/scenario_app/compile_android_aot.sh | 5 +++++ testing/scenario_app/compile_ios_aot.sh | 5 +++++ testing/scenario_app/compile_ios_jit.sh | 5 +++++ 3 files changed, 15 insertions(+) diff --git a/testing/scenario_app/compile_android_aot.sh b/testing/scenario_app/compile_android_aot.sh index eb22ebdafd7..bff6564ae8e 100755 --- a/testing/scenario_app/compile_android_aot.sh +++ b/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/testing/scenario_app/compile_ios_aot.sh b/testing/scenario_app/compile_ios_aot.sh index 60596525438..45ec6016891 100755 --- a/testing/scenario_app/compile_ios_aot.sh +++ b/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/testing/scenario_app/compile_ios_jit.sh b/testing/scenario_app/compile_ios_jit.sh index 565089f5624..fc27b4854b1 100755 --- a/testing/scenario_app/compile_ios_jit.sh +++ b/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"