mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-11-25 13:51:16 +00:00
Update build instructions
This commit is contained in:
parent
4e1979036a
commit
572ccb9e84
1 changed files with 5 additions and 2 deletions
|
@ -21,10 +21,13 @@ Translations can be updated using the [Transifex client](http://docs.transifex.c
|
|||
|
||||
### Requirements
|
||||
- Android SDK Platform (for the `compileSdkVersion` specified in [build.gradle](build.gradle))
|
||||
- Android NDK Platform
|
||||
- Android Support Repository
|
||||
|
||||
### Build instructions
|
||||
|
||||
Set the `ANDROID_NDK` environment variable to the Android NDK folder (e.g. `export ANDROID_NDK=/opt/android_ndk`).
|
||||
Build Go and Syncthing using `./make-all.bash`.
|
||||
Use `./gradlew assembleDebug` in the project directory to compile the APK.
|
||||
|
||||
To check for updated gradle dependencies, run `gradle dependencyUpdates`. Additionally, the git submodule in `ext/syncthing/src/github.com/syncthing/syncthing` may need to be updated.
|
||||
|
@ -33,8 +36,8 @@ To check for updated gradle dependencies, run `gradle dependencyUpdates`. Additi
|
|||
### Building on Windows
|
||||
|
||||
To build the Syncthing app on Windows we need to include the native Syncthing binaries:
|
||||
- Download the `syncthing-linux-386` and `syncthing-linux-arm` archives from [Syncthing releases](https://github.com/syncthing/syncthing/releases) and extract them. In each there is a `syncthing` executable. Rename and place both of these to `libs/x86/libsyncthing.so` and `libs/armeabi/libsyncthing.so` respectively.
|
||||
You will also need to replace the standard `build.gradle` file with [this one](https://gist.github.com/Moter8/9cfc191434d1989d86be).
|
||||
- Download the `syncthing-linux-386` and `syncthing-linux-arm` archives from [Syncthing releases](https://github.com/syncthing/syncthing/releases) and extract them. In each there is a `syncthing` executable. Rename and place both of these to `libs/x86/libsyncthing.so` and `libs/armeabi/libsyncthing.so` respectively.
|
||||
Use `./gradlew assembleDebug` in the project directory to compile the APK.
|
||||
|
||||
# License
|
||||
|
||||
|
|
Loading…
Reference in a new issue