mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2026-05-22 13:56:30 +03:00
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:
@@ -56,7 +56,7 @@ if [ $ANDROID ]; then
|
|||||||
echo "Building aar for Android"
|
echo "Building aar for Android"
|
||||||
go get golang.org/x/mobile/bind
|
go get golang.org/x/mobile/bind
|
||||||
gomobile bind \
|
gomobile bind \
|
||||||
-target android -tags mobile -o yggdrasil.aar \
|
-target android -androidapi 21 -tags mobile -o yggdrasil.aar \
|
||||||
-ldflags="$LDFLAGS $STRIP" -gcflags="$GCFLAGS" \
|
-ldflags="$LDFLAGS $STRIP" -gcflags="$GCFLAGS" \
|
||||||
./contrib/mobile ./src/config;
|
./contrib/mobile ./src/config;
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user