1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-11-22 12:21:15 +00:00
syncthing-android/README.md

102 lines
4.4 KiB
Markdown
Raw Normal View History

2024-10-20 09:57:28 +00:00
# Discontinued
2024-10-20 09:57:28 +00:00
This app is discontinued. The last release on Github and F-Droid will happen
with the December 2024 Syncthing version. Interactions (issues, PRs) are limited
now, and the entire repo will be archived after the last release. Thus all
contributions are preserved for any future (re)use. The forum is still open for
discussions and questions. I would kindly ask you to refrain from trying to
challenge the decision or asking "why-type" questions - I wont engage with them.
2024-10-20 09:57:28 +00:00
The reason is a combination of Google making Play publishing something between
hard and impossible and no active maintenance. The app saw no significant
development for a long time and without Play releases I do no longer see enough
benefit and/or have enough motivation to keep up the ongoing maintenance an app
requires even without doing much, if any, changes.
2014-05-10 11:40:13 +00:00
2024-10-20 09:57:28 +00:00
Thanks a lot to everyone who ever contributed to this app!
2024-10-20 09:57:28 +00:00
# syncthing-android
2024-10-20 09:57:28 +00:00
[![License: MPLv2](https://img.shields.io/badge/License-MPLv2-blue.svg)](https://opensource.org/licenses/MPL-2.0)
2024-10-20 09:57:28 +00:00
A wrapper of [Syncthing](https://github.com/syncthing/syncthing) for Android.
2024-10-20 09:57:28 +00:00
<img src="app/src/main/play/listings/en-GB/graphics/phone-screenshots/screenshot_phone_1.png" alt="screenshot 1" width="200" /> <img src="app/src/main/play/listings/en-GB/graphics/phone-screenshots/screenshot_phone_2.png" alt="screenshot 2" width="200" /> <img src="app/src/main/play/listings/en-GB/graphics/phone-screenshots/screenshot_phone_3.png" alt="screenshot 3" width="200" />
# Translations
The project is translated on [Hosted Weblate](https://hosted.weblate.org/projects/syncthing/android/).
## Dev
Language codes are usually mapped correctly by Weblate itself. The supported
set is different between [Google Play][1] and Android apps. The latter can be
deduced by what the [Android core framework itself supports][2]. New languages
need to be added in the repository first, then appear automatically in Weblate.
[1]: https://support.google.com/googleplay/android-developer/table/4419860
[2]: https://android.googlesource.com/platform/frameworks/base/+/refs/heads/main/core/res/res/
# Building
These dependencies and instructions are necessary for building from the command
line. If you build using Docker or Android Studio, you don't need to set up and
follow them separately.
## Dependencies
1. Android SDK and NDK
1. Download SDK command line tools from https://developer.android.com/studio#command-line-tools-only.
2. Unpack the downloaded archive to an empty folder. This path is going
to become your `ANDROID_HOME` folder.
3. Inside the unpacked `cmdline-tools` folder, create yet another folder
called `latest`, then move everything else inside it, so that the final
folder hierarchy looks as follows.
```
cmdline-tools/latest/bin
cmdline-tools/latest/lib
cmdline-tools/latest/source.properties
cmdline-tools/latest/NOTICE.txt
```
4. Navigate inside `cmdline-tools/latest/bin`, then execute
```
./sdkmanager "platform-tools" "build-tools;<version>" "platforms;android-<version>" "extras;android;m2repository" "ndk;<version>"
```
The required tools and NDK will be downloaded automatically.
**NOTE:** You should check [Dockerfile](docker/Dockerfile) for the
specific version numbers to insert in the command above.
2. Go (see https://docs.syncthing.net/dev/building#prerequisites for the
required version)
3. Java version 11 (if not present in ``$PATH``, you might need to set
``$JAVA_HOME`` accordingly)
4. Python version 3
## Build instructions
1. Clone the project with
```
git clone https://github.com/syncthing/syncthing-android.git --recursive
```
Alternatively, if already present on the disk, run
```
git submodule init && git submodule update
```
in the project folder.
2. Make sure that the `ANDROID_HOME` environment variable is set to the path
containing the Android SDK (see [Dependecies](#dependencies)).
3. Navigate inside `syncthing-android`, then build the APK file with
```
./gradlew buildNative
./gradlew assembleDebug
```
4. Once completed, `app-debug.apk` will be present inside `app/build/outputs/apk/debug`.
**NOTE:** On Windows, you must use the Command Prompt (and not PowerShell) to
compile. When doing so, in the commands replace all forward slashes `/` with
backslashes `\`.
# License
2014-05-05 21:52:51 +00:00
2015-03-17 21:27:50 +00:00
The project is licensed under the [MPLv2](LICENSE).