Skip to content

Commit 460200d

Browse files
authored
Merge pull request #1879 from neodix42/fix-android-build-1
Fix android tonlib GH build by upgrading Android NDK r25b->r27d
1 parent efd9e8e commit 460200d

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

assembly/android/build-android-tonlib.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ export CC=$(which clang-16)
1212
export CXX=$(which clang++-16)
1313
export CCACHE_DISABLE=1
1414

15-
if [ ! -d android-ndk-r25b ]; then
16-
rm android-ndk-r25b-linux.zip
17-
echo "Downloading https://dl.google.com/android/repository/android-ndk-r25b-linux.zip"
18-
wget -q https://dl.google.com/android/repository/android-ndk-r25b-linux.zip
19-
unzip -q android-ndk-r25b-linux.zip
20-
test $? -eq 0 || { echo "Can't unzip android-ndk-r25b-linux.zip"; exit 1; }
15+
if [ ! -d android-ndk-r27d ]; then
16+
rm android-ndk-r27d-linux.zip
17+
echo "Downloading https://dl.google.com/android/repository/android-ndk-r27d-linux.zip"
18+
wget -q https://dl.google.com/android/repository/android-ndk-r27d-linux.zip
19+
unzip -q android-ndk-r27d-linux.zip
20+
test $? -eq 0 || { echo "Can't unzip android-ndk-r27d-linux.zip"; exit 1; }
2121
echo "Android NDK extracted"
2222
else
2323
echo "Using extracted Android NDK"
@@ -29,13 +29,13 @@ export JAVA_INCLUDE_PATH=${JAVA_HOME}/include
2929
export JAVA_AWT_INCLUDE_PATH=${JAVA_HOME}/include
3030
export JAVA_INCLUDE_PATH2=${JAVA_HOME}/include/linux
3131

32-
export ANDROID_NDK_ROOT=$(pwd)/android-ndk-r25b
32+
export ANDROID_NDK_ROOT=$(pwd)/android-ndk-r27d
3333
export NDK_PLATFORM="android-21"
3434
export ANDROID_PLATFORM="android-21"
3535
export OPENSSL_DIR=$(pwd)/example/android/third_party/crypto
3636

3737
rm -rf example/android/src/drinkless/org/ton/TonApi.java
38-
cd example/android/
38+
cd example/android/ || exit
3939

4040
rm CMakeCache.txt .ninja_*
4141
cmake -GNinja -DTON_ONLY_TONLIB=ON .

0 commit comments

Comments
 (0)