2018-04-09 20:13:25 +00:00
|
|
|
#!/bin/bash -e
|
|
|
|
|
2023-06-18 14:45:01 +00:00
|
|
|
if [ -z "$SYNCTHING_ANDROID_PREBUILT" ]; then
|
|
|
|
echo "Prebuild disabled"
|
|
|
|
rm -rf syncthing-android
|
|
|
|
exit 0
|
|
|
|
fi
|
2018-04-09 20:13:25 +00:00
|
|
|
|
2019-09-05 15:25:15 +00:00
|
|
|
echo "Prepopulating gradle and go build/pkg cache"
|
2018-04-09 20:13:25 +00:00
|
|
|
cd syncthing-android
|
2023-06-18 14:25:51 +00:00
|
|
|
./gradlew --no-daemon lint buildNative
|
2018-04-09 20:13:25 +00:00
|
|
|
cd ..
|
|
|
|
rm -rf syncthing-android
|