42be1fb26b
Fix NPE when mVersion or mCurrentAddress is not set |
||
---|---|---|
.tx | ||
ext/syncthing/src/github.com/syncthing | ||
gradle/wrapper | ||
graphics | ||
src | ||
.gitignore | ||
.gitmodules | ||
.travis.yml | ||
build-syncthing.sh | ||
build.gradle | ||
CONTRIBUTING.md | ||
gradlew | ||
gradlew.bat | ||
LICENSE | ||
lint.xml | ||
proguard-android.txt | ||
README.md | ||
settings.gradle |
syncthing-android
A wrapper of syncthing for Android.
Translations
The project is translated on Transifex.
Translations can be updated using the Transifex client, using commands tx push -s
and tx pull -a
.
Building
Requirements
- Android SDK Platform (for the
compileSdkVersion
specified in build.gradle) - Android Support Repository
Build instructions
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.
Building on Windows
To build the Syncthing app on Windows we need to include the native syncthing binaries:
- Download the
syncthing-linux-386
andsyncthing-linux-arm
archives from syncthing releases and extract them. In each there is asyncthing
executable. Rename and place both of these tolibs/x86/libsyncthing.so
andlibs/armeabi/libsyncthing.so
respectively.
You will also need to replace the standardbuild.gradle
file with this one.
Development Notes
It is recommended to change the GUI and Listen Address ports for the debug app, eg to 8081 and 22001 respectively.
The syncthing backend used for this android application provides a web interface by default. It can be accessed via the Settings menu -> 'Web GUI'. It is quite helpful to access this web interface from your development machine. Read android documentation on how to access the network of your emulator. Or use the following steps to connect to the single currently running emulator/AVD.
telnet localhost 5554
redir add tcp:18080:8080
- Start syncthing app on your emulator and access the web interface from you favorite browser of your development machine via http://127.0.0.1:18080
License
The project is licensed under the MPLv2.