1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-12-22 10:51:28 +00:00
syncthing-android/docker
Simon Frei 2942072594
Compile and target SDK version 31, increase min Sdk to 21 (#1864)
The upgraded compile SDK requires an upgrade of gradle, which introduces a
build error with api lvl <21:
   > Error while processing [...]/app/src/main/res/drawable/ic_close_24dp.xml :
     Invalid color value ?attr/colorControlNormal
Explanation: https://stackoverflow.com/a/49501629

Also minor NDK update
2022-11-27 20:27:54 +01:00
..
Dockerfile Compile and target SDK version 31, increase min Sdk to 21 (#1864) 2022-11-27 20:27:54 +01:00
prebuild.sh Containers and build process improvements/fixes (#1602) 2021-02-03 10:45:54 +01:00
README.md Docker image, and windows builds (#1049) 2018-04-09 21:13:25 +01:00

How to use this

  1. Build the docker image: docker build -t syncthing-android-builder:latest .
  2. Checkout syncthing-android somewhere (for the sake of discussion let's say /tmp/syncthing-android)
  3. Inside /tmp/syncthing-android, do git submodule init; git submodule update
  4. Run docker run --rm -v /tmp/syncthing-android:/mnt syncthing-android-builder ./gradlew buildNative assembleDebug
  5. Retrieve APKs from /tmp/syncthing-android/app/build/outputs