1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-11-23 04:41:16 +00:00
Wrapper of syncthing for Android.
Find a file
Jessie Chatham Spencer d6ee33e48e Improvements for "save to Syncthing" (#939)
* Addressing #899 and #898.
Added Subdirectory browsing
The previously selected folder is remembered.
The subdirectory is remembered for each syncthing folder.
The saved subdirectory in the sharedpreferences is deleted when a folder is deleted.
The root directory of the folderpicker activity is set to the synced folder, so the user can only choose a subfolder within the folder that is being synced.
The folderpicker activity was modified inorder to allow for a custom root directroy to be set.

* Addressing change requests.
Spelling and formatting.

* Addressing change requests.
 - The saved folder subdirectory is now deleted in RestApi.removeFolder(),
   this ensure that the data will be deleted no matter where removeFolder()
   is called from.

 - FolderPickerActivity.createIntentWithRootDir() removed and its functionality moved
   to FolderPickerActivity.createIntent() inorder to simplify the code.

 - getSharedPreference has been replaced with PreferenceManager.getDefaultSharedPreferences.

 - When passing the directory to CopyFileTask getSavedSubdirectory() is now used, instead
   of getting the text from the textview. This is cleaner and ensures that the same method us
   used to get the saved subdirectory everywhere in the ShareActivity.

 - File is used to combine the folder path and subdirectory path instead of strings.
   This ensures that the paths are properly combined. As a result of this CopyFilesTask
   has been modified so it accepts a File instead of a String.

* Addressing change requests
    - Removed the preceding slash from the sub directory and added a trailing slash.
    - TextView now diplays a message when no sub directory is selected.
    - A separate browse button has been added.

* Fixes UI for all screen sizes in the share activity and adds helper method for formatting file
paths.
If there is not space for the save and cancel buttons then the view becomes scrollable
so the buttons can be reached.
2017-10-23 23:28:26 +09:00
.tx Revert build script changes 2017-10-19 12:09:53 +09:00
ext Revert build script changes 2017-10-19 12:09:53 +09:00
gradle/wrapper Update dependencies 2017-07-19 12:37:47 +09:00
graphics Integrate gradle plugin for translation uploads (fixes #408, #463). 2015-11-16 22:10:00 +01:00
patches/golang/all Revert build script changes 2017-10-19 12:09:53 +09:00
src/main Improvements for "save to Syncthing" (#939) 2017-10-23 23:28:26 +09:00
.gitignore Revert build script changes 2017-10-19 12:09:53 +09:00
.gitmodules Revert build script changes 2017-10-19 12:09:53 +09:00
.travis.yml Revert build script changes 2017-10-19 12:09:53 +09:00
build.gradle Bumped version to 0.9.17 2017-10-19 12:41:10 +09:00
CONTRIBUTING.md Added more info about logcat to contributing 2016-12-05 14:15:21 +09:00
gradle.properties Add publish release script 2017-10-08 15:06:52 +09:00
gradlew Updated gradle 2017-01-26 11:38:17 +09:00
gradlew.bat Updated gradle 2017-01-26 11:38:17 +09:00
ISSUE_TEMPLATE.md Added issue template, based on that in syncthing/syncthing. 2016-08-02 17:11:34 +02:00
LICENSE Change license to MPLv2. 2015-03-17 22:27:50 +01:00
lint.xml Revert build script changes 2017-10-19 12:09:53 +09:00
make-all.bash Revert build script changes 2017-10-19 12:09:53 +09:00
make-go.bash Revert build script changes 2017-10-19 12:09:53 +09:00
make-syncthing.bash Revert build script changes 2017-10-19 12:09:53 +09:00
prepare-release.bash Revert build script changes 2017-10-19 12:09:53 +09:00
publish-release.sh Update release scripts 2017-10-11 12:55:12 +09:00
README.md Revert build script changes 2017-10-19 12:09:53 +09:00

syncthing-android

Build Status License: MPLv2 Bountysource

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 NDK Platform
  • Android Support Repository

Build instructions

This repository is using external dependencies so you have to initialize all submodules with --recursive option first time: git clone https://github.com/syncthing/syncthing-android.git --recursive.

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 prepare a new release, execute ./prepare-release.bash, and follow the instructions.

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 have cygwin installed.

From a cygwin shell in the project directory, build Go using ./make-go.bash [arch] After Go is built, compile syncthing using ./make-syncthing.bash [arch]

Lastly, use ./gradlew assembleDebug in the project directory to compile the APK, or use Android Studio to build/deploy the APK.

License

The project is licensed under the MPLv2.