setup: Run gradlew task even if NDK was just installed

Signed-off-by: Pedro Pombeiro <pombeirp@users.noreply.github.com>
This commit is contained in:
Pedro Pombeiro 2018-08-29 15:58:57 +02:00
parent 95d0a782c3
commit 96b8edc846
No known key found for this signature in database
GPG Key ID: A65DEB11E4BBC647
1 changed files with 4 additions and 2 deletions

View File

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