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
|
2024-04-12 17:32:37 +00:00
|
|
|
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
|
2024-04-12 17:32:37 +00:00
|
|
|
echo "${ANDROID_NDK_SHA256}" "${ANDROID_NDK_ZIP}" | sha256sum -c || exit 1
|
2022-08-26 08:11:35 +00:00
|
|
|
|
|
|
|
|
2024-04-12 17:32:37 +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/
|