From 96b8edc8460ea0e8827cf8b0d5719d3e8eddc847 Mon Sep 17 00:00:00 2001 From: Pedro Pombeiro Date: Wed, 29 Aug 2018 15:58:57 +0200 Subject: [PATCH] setup: Run gradlew task even if NDK was just installed Signed-off-by: Pedro Pombeiro --- scripts/lib/setup/installers.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/lib/setup/installers.sh b/scripts/lib/setup/installers.sh index fc5a50f11d..7190455fe8 100755 --- a/scripts/lib/setup/installers.sh +++ b/scripts/lib/setup/installers.sh @@ -320,8 +320,7 @@ function use_android_sdk() { function install_android_ndk() { if grep -Fq "ndk.dir" $_localPropertiesPath; then - dependency_setup \ - "pushd android && ./gradlew react-native-android:installArchives && popd" + cecho "@green[[Android NDK already declared.]]" else local _ndkParentDir=~/Android/Sdk mkdir -p $_ndkParentDir @@ -334,4 +333,7 @@ function install_android_ndk() { echo "ndk.dir=$_ndkTargetDir" | tee -a $_localPropertiesPath && \ cecho "@blue[[Android NDK installation completed in $_ndkTargetDir.]]" fi + + dependency_setup \ + "pushd android && ./gradlew react-native-android:installArchives && popd" } \ No newline at end of file