1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-12-23 03:11:30 +00:00
Wrapper of syncthing for Android.
Find a file
2015-01-20 19:08:57 +01:00
.tx Use correct (deprecated) language codes for string resources. 2014-10-21 11:45:50 +03:00
ext/syncthing/src/github.com/syncthing Updated syncthing. 2015-01-12 11:50:03 +01:00
gradle/wrapper Updated dependencies and gradle wrapper. 2014-12-07 11:58:54 +02:00
graphics Updated screenshots. 2014-10-18 16:29:26 +03:00
src Move menu items to drawer (fixes #110). 2015-01-20 19:08:57 +01:00
.gitignore Prepare building environment for F-Droid. 2014-08-20 23:58:28 +02:00
.gitmodules Get support-v4-preferencefragment via maven dependency instead of submodule. 2014-09-25 02:29:19 +03:00
.travis.yml Added Travis CI support. 2014-11-17 13:46:27 +02:00
build-syncthing.sh Fix certificate issue on travis build 2015-01-16 09:46:11 +01:00
build.gradle Force static linking 2015-01-16 09:46:06 +01:00
CONTRIBUTING.md Improved development notes. 2014-09-25 02:28:58 +03:00
gradlew Use gradle wrapper. 2014-10-18 14:58:10 +03:00
gradlew.bat Use gradle wrapper. 2014-10-18 14:58:10 +03:00
LICENSE Updated license date 2014-12-30 09:12:44 +00:00
lint.xml Lint fixes. 2014-10-18 13:09:48 +03:00
README.md Improved and shortened build instructions 2014-12-06 23:32:26 +02:00
settings.gradle Use PreferenceFragments with a wrapper instead of SettingsFragments (fixes #64). 2014-09-25 02:28:04 +03:00

syncthing-android

current build status tip for next commit

A wrapper of syncthing for Android.

screenshot 1 screenshot 2 screenshot 3

Get it on Google Play Get it on F-Droid

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.

Getting Syncthing without building natively

To get Syncthing app for Android running on you device/emulator the native syncthing binary has to be available. There are multiple ways to get the native syncthing binary:

  • open the Syncthing apk (the one taken from the play store) running on your device as a zip, extract the lib/ folder into your project directory and rename it to libs/.
  • Depending on your target architecture, download syncthing-linux-386, syncthing-linux-armv5, syncthing-linux-armv7 or syncthing-linux-mips from syncthing releases, and extract the binary to libs/x86/libsyncthing.so, libs/armeabi/libsyncthing.so, libs/armeabi-v7a/libsyncthing.so or libs/mips/libsyncthing.so respectively.

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

All code is licensed under the MIT License.