mirror of
https://github.com/status-im/status-mobile.git
synced 2025-02-13 09:06:52 +00:00
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:
parent
95d0a782c3
commit
96b8edc846
@ -320,8 +320,7 @@ function use_android_sdk() {
|
|||||||
|
|
||||||
function install_android_ndk() {
|
function install_android_ndk() {
|
||||||
if grep -Fq "ndk.dir" $_localPropertiesPath; then
|
if grep -Fq "ndk.dir" $_localPropertiesPath; then
|
||||||
dependency_setup \
|
cecho "@green[[Android NDK already declared.]]"
|
||||||
"pushd android && ./gradlew react-native-android:installArchives && popd"
|
|
||||||
else
|
else
|
||||||
local _ndkParentDir=~/Android/Sdk
|
local _ndkParentDir=~/Android/Sdk
|
||||||
mkdir -p $_ndkParentDir
|
mkdir -p $_ndkParentDir
|
||||||
@ -334,4 +333,7 @@ function install_android_ndk() {
|
|||||||
echo "ndk.dir=$_ndkTargetDir" | tee -a $_localPropertiesPath && \
|
echo "ndk.dir=$_ndkTargetDir" | tee -a $_localPropertiesPath && \
|
||||||
cecho "@blue[[Android NDK installation completed in $_ndkTargetDir.]]"
|
cecho "@blue[[Android NDK installation completed in $_ndkTargetDir.]]"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
dependency_setup \
|
||||||
|
"pushd android && ./gradlew react-native-android:installArchives && popd"
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user