stack_wallet/scripts/android/install_ndk.sh

22 lines
837 B
Bash
Raw Normal View History

2022-08-26 08:11:35 +00:00
#!/bin/sh
2024-01-19 21:34:55 +00:00
mkdir -p build
2022-08-26 08:11:35 +00:00
. ./config.sh
ANDROID_NDK_SHA256="8381c440fe61fcbb01e209211ac01b519cd6adf51ab1c2281d5daad6ca4c8c8c"
if [ ! -e "$ANDROID_NDK_ZIP" ]; then
curl https://dl.google.com/android/repository/android-ndk-r20b-linux-x86_64.zip -o "${ANDROID_NDK_ZIP}"
2022-08-26 08:11:35 +00:00
fi
echo "${ANDROID_NDK_SHA256}" "${ANDROID_NDK_ZIP}" | sha256sum -c || exit 1
2022-08-26 08:11:35 +00:00
PLUGINS_DIR=../../crypto_plugins
mkdir -p "${PLUGINS_DIR}"/flutter_libmonero/scripts/android/build
mkdir -p "${PLUGINS_DIR}"/flutter_liblelantus/scripts/android/build
mkdir -p "${PLUGINS_DIR}"/flutter_libepiccash/scripts/android/build
cp "${ANDROID_NDK_ZIP}" "${PLUGINS_DIR}"/flutter_libmonero/scripts/android/build/
cp "${ANDROID_NDK_ZIP}" "${PLUGINS_DIR}"/flutter_liblelantus/scripts/android/build/
cp "${ANDROID_NDK_ZIP}" "${PLUGINS_DIR}"/flutter_libepiccash/scripts/android/build/