Update gomobile bind command for Android build (#1318)

Latest gomobile/ndk for some reason default to API 16, and this leads to
build error.
This commit is contained in:
Revertron
2026-03-09 10:57:00 +01:00
committed by GitHub
parent dd1eb6ed92
commit 50def9362f

View File

@@ -56,7 +56,7 @@ if [ $ANDROID ]; then
echo "Building aar for Android"
go get golang.org/x/mobile/bind
gomobile bind \
-target android -tags mobile -o yggdrasil.aar \
-target android -androidapi 21 -tags mobile -o yggdrasil.aar \
-ldflags="$LDFLAGS $STRIP" -gcflags="$GCFLAGS" \
./contrib/mobile ./src/config;
fi