Skip to content
This repository was archived by the owner on Dec 6, 2025. It is now read-only.

Commit cb696ca

Browse files
committed
Merge upstream/main at b25c350
2 parents df3f000 + b25c350 commit cb696ca

49 files changed

Lines changed: 405 additions & 242 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/copilot-instructions.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,5 @@ Please refrain from building the whole app with "assemleDebug" as this will take
1515
Do not try to upgrade the kotlin version in "gradle/libs.versions.toml", it will throw a lot of warnings and errors.
1616

1717
No matter which language I use to write my prompt for you, please always do your coding work and code comments in english.
18+
19+
Do not edit the "wiki/CHANGELOG.md" file. I'll do that myself when I prepare a new release.
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"id": 8499186,
3+
"name": "Branch protection: main checks",
4+
"target": "branch",
5+
"source_type": "Repository",
6+
"source": "Catfriend1/syncthing-android",
7+
"enforcement": "active",
8+
"conditions": {
9+
"ref_name": {
10+
"exclude": [],
11+
"include": [
12+
"~DEFAULT_BRANCH"
13+
]
14+
}
15+
},
16+
"rules": [
17+
{
18+
"type": "required_status_checks",
19+
"parameters": {
20+
"strict_required_status_checks_policy": false,
21+
"do_not_enforce_on_create": false,
22+
"required_status_checks": [
23+
{
24+
"context": "Debug Build",
25+
"integration_id": 15368
26+
}
27+
]
28+
}
29+
}
30+
],
31+
"bypass_actors": [
32+
{
33+
"actor_id": 978,
34+
"actor_type": "Integration",
35+
"bypass_mode": "exempt"
36+
}
37+
]
38+
}

.github/rulesets/branch-protection/main.json renamed to .github/rulesets/branch-protection/Branch protection_ main push-del.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"id": 4209024,
3-
"name": "Branch protection: main",
2+
"id": 6332724,
3+
"name": "Branch protection: main push-del",
44
"target": "branch",
55
"source_type": "Repository",
66
"source": "Catfriend1/syncthing-android",

.github/workflows/actions-setup.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,3 @@
1414
### [PWD]
1515
## GNUPG_SIGNING_KEY_BASE64
1616
### powershell "[Convert]::ToBase64String([IO.File]::ReadAllBytes('X:\Catfriend1_SECRET.asc'))"
17-
## GHCR_TOKEN
18-
### %GHP%

.github/workflows/build-app.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,8 @@ jobs:
6363
${{ runner.temp }}/.gradle/caches
6464
${{ runner.temp }}/.gradle/wrapper
6565
${{ runner.temp }}/.android
66-
key: ${{ runner.os }}-gradle-android-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}-${{ steps.get_ndk_version.outputs.ndk_version }}
66+
key: ${{ runner.os }}-gradle-android-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
6767
restore-keys: |
68-
${{ runner.os }}-gradle-android-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}-
6968
${{ runner.os }}-gradle-android-
7069
7170
- name: Get syncthing commit hash for native libs cache

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,17 @@ It regularly mirrors the <a href="https://github.com/Catfriend1/syncthing-androi
1515

1616
## Switching from the (now deprecated) official version
1717

18-
Switching is easier than you may think! See our [wiki article](https://github.com/Catfriend1/syncthing-android/blob/main/wiki/Switching-from-the-deprecated-official-version.md) for detailed instructions.
18+
Switching is easier than you may think! See our [wiki article](wiki/migration/Switching-from-the-deprecated-official-version.md) for detailed instructions.
1919

2020
## Wiki and Useful Articles
2121

22-
Our knowledge base is published [here](https://github.com/Catfriend1/syncthing-android/tree/main/wiki#readme).
22+
Our knowledge base is published [here](wiki#readme).
2323

24-
Our [release history and changelog](https://github.com/Catfriend1/syncthing-android/blob/main/wiki/CHANGELOG.md) can be found on the wiki.
24+
Our [release history and changelog](wiki/CHANGELOG.md) can be found on the wiki.
2525

2626
## Building and Development Notes
2727

28-
See [detailed info](https://github.com/Catfriend1/syncthing-android/blob/main/wiki/Building-and-Development.md).
28+
See [detailed info](wiki/developers/Building-and-Development.md).
2929

3030
## Acknowledgments
3131

@@ -38,7 +38,7 @@ Special thanks to the former maintainers:
3838

3939
## Privacy Policy
4040

41-
See our document on privacy: [privacy-policy.md](https://github.com/Catfriend1/syncthing-android/blob/main/privacy-policy.md).
41+
See our document on privacy: [privacy-policy.md](privacy-policy.md).
4242

4343
## License
4444

app/src/main/java/com/nutomic/syncthingandroid/activities/ShareActivity.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,8 @@ protected void onCreate(Bundle savedInstanceState) {
209209
return;
210210
}
211211
File directory = new File(folder.path, getSavedSubDirectory());
212-
CopyFilesTask mCopyFilesTask = new CopyFilesTask(this, files, folder, directory);
212+
boolean allowOverwrite = mPreferences.getBoolean(Constants.PREF_ALLOW_OVERWRITE_FILES, false);
213+
CopyFilesTask mCopyFilesTask = new CopyFilesTask(this, files, folder, directory, allowOverwrite);
213214
mCopyFilesTask.execute();
214215
});
215216

@@ -385,13 +386,15 @@ private static class CopyFilesTask extends AsyncTask<Void, Void, Boolean> {
385386
private final Map<Uri, String> mFiles;
386387
private final Folder mFolder;
387388
private final File mDirectory;
389+
private final boolean mAllowOverwrite;
388390
private int mCopied = 0, mIgnored = 0;
389391

390-
CopyFilesTask(ShareActivity context, Map<Uri, String> files, Folder folder, File directory) {
392+
CopyFilesTask(ShareActivity context, Map<Uri, String> files, Folder folder, File directory, boolean allowOverwrite) {
391393
refShareActivity = new WeakReference<>(context);
392394
this.mFiles = files;
393395
this.mFolder = folder;
394396
this.mDirectory = directory;
397+
this.mAllowOverwrite = allowOverwrite;
395398
}
396399

397400
protected void onPreExecute() {
@@ -415,7 +418,7 @@ protected Boolean doInBackground(Void... params) {
415418
InputStream inputStream = null;
416419
try {
417420
File outFile = new File(mDirectory, entry.getValue());
418-
if (outFile.isFile()) {
421+
if (outFile.isFile() && !mAllowOverwrite) {
419422
mIgnored++;
420423
continue;
421424
}

app/src/main/java/com/nutomic/syncthingandroid/service/Constants.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ private PowerSource() { }
5353
public static final String PREF_START_SERVICE_ON_BOOT = "always_run_in_background";
5454
public static final String PREF_BROADCAST_SERVICE_CONTROL = "broadcast_service_control";
5555
public static final String PREF_USE_ROOT = "use_root";
56+
public static final String PREF_ALLOW_OVERWRITE_FILES = "allow_overwrite_files";
5657

5758
// Preferences - Syncthing Options
5859
public static final String PREF_WEBUI_USERNAME = "webui_username";
Lines changed: 15 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,27 @@
1-
Questo è un fork del wrapper Syncthing-Android per Syncthing che offre importanti miglioramenti come:
2-
* La cartella, il dispositivo e la sincronizzazione generale possono essere facilmente letti dall'interfaccia utente.
3-
* "Syncthing Camera" - una funzione opzionale (con permesso opzionale per usare la fotocamera) in cui puoi scattare foto con il tuo amico, partner, ... su due telefoni in una cartella Syncthing condivisa e privata. Nessun cloud coinvolto. - FUNZIONALITÀ ATTUALMENTE NELLA FASE BETA -
4-
* "Sincronizza ogni ora" per risparmiare ancora più batteria
5-
* Le condizioni di sincronizzazione individuali possono essere applicate per dispositivo e per cartella
6-
* Interfaccia utente modifiche recenti, fare clic per aprire i file.
7-
* È possibile apportare modifiche alla cartella e alla configurazione del dispositivo indipendentemente dal fatto che Syncthing sia in esecuzione o meno
1+
Questo è un fork del wrapper Syncthing-Android per Syncthing che apporta importanti miglioramenti come:
2+
* Cartelle, dispositivi e stato di sincronizzazione generale possono essere facilmente letti dall'interfaccia utente.
3+
* "Sincronizza ogni ora" per risparmiare ancora di più la batteria.
4+
* È possibile applicare condizioni di sincronizzazione individuali per dispositivo e per cartella.
5+
* Interfaccia utente con modifiche recenti, fare clic per aprire i file.
6+
* Le modifiche alla configurazione di cartelle e dispositivi possono essere apportate indipendentemente dal fatto che Syncthing sia in esecuzione o meno.
87
* L'interfaccia utente spiega perché Syncthing è in esecuzione o meno.
9-
* Risolto il problema dell'eccessivo consumo della batteria
10-
* Scopri altri dispositivi Syncthing sulla stessa rete e aggiungili facilmente.
11-
* Supporta la sincronizzazione in lettura e scrittura su scheda SD da Android 11.
8+
* Il problema del "consumo di batteria" è stato risolto.
9+
* Rileva altri dispositivi Syncthing sulla stessa rete e li aggiunge facilmente.
10+
* Supporta la sincronizzazione bidirezionale su scheda SD esterna a partire da Android 11.
1211

13-
Syncthing-Fork per Android è un wrapper per Syncthing che fornisce un'interfaccia utente Android come alternativa all'interfaccia Web di Syncthing. Syncthing sostituisce servizi proprietari di sincronizzazione e cloud con qualcosa di aperto, affidabile e decentralizzato. I tuoi dati sono solo tuoi e meriti di scegliere dove vengono immagazzinati, se sono condivisi con terze parti e come sono trasmessi attraverso Internet.
12+
Syncthing-Fork per Android è un wrapper per Syncthing che fornisce un'interfaccia utente Android al posto dell'interfaccia utente web integrata di Syncthing. Syncthing sostituisce i servizi di sincronizzazione e cloud proprietari con qualcosa di aperto, affidabile e decentralizzato. I tuoi dati sono solo tuoi e meriti di scegliere dove archiviarli, se condividerli con terze parti e come trasmetterli su Internet.
1413

15-
Obiettivi del fork:
16-
* Sviluppa e prova i miglioramenti insieme alla community.
17-
* Rilasciare il wrapper più frequentemente per identificare e correggere i bug causati dalle modifiche nel sottomodulo syncthing
18-
* Fai miglioramenti configurabili nell'interfaccia utente, gli utenti dovrebbero essere in grado di accenderli e spegnerli
19-
20-
Confronto fra la versione ufficiale e il fork al momento della stesura di questa documento:
21-
* Entrambi utilizzano il programma syncthing compilato dalla fonte ufficiale GitHub
22-
* La funzionalità e l'affidabilità della sincronizzazione dipende dalla versione di syncthing.
23-
* Il fork include i miglioramenti rilasciati per la versione ufficiale e a volte vengono integrati nella versione ufficiale i miglioramenti sviluppati per il fork.
24-
* La strategia e la frequenza di rilascio sono differenti
25-
* Solo il wrapper che contiene l'interfaccia utente Android viene indirizzato dalla forcella.
14+
Chiedi aiuto sul forum e/o sulle app dei social media prima di creare problemi con il tracker. Tieni presente che Syncthing-Fork è nato per interesse personale, per aiutare familiari e amici a utilizzare Syncthing su Android. Non era rivolto agli oltre 100.000 utenti attuali, anche se i risultati sono condivisi con te e la community. Grazie.
2615

2716
Sito web: https://github.com/Catfriend1/syncthing-android
2817

2918
Codice sorgente: https://github.com/Catfriend1/syncthing-android
3019

31-
Come scrive Syncthing su scheda SD esterna: https://github.com/Catfriend1/syncthing-android/blob/master/wiki/SD-card-write-access.md
20+
Come Syncthing scrive su una scheda SD esterna: https://github.com/Catfriend1/syncthing-android/blob/main/wiki/SD-card-write-access.md
3221

33-
Wiki, FAQ e articoli utili: https://github.com/Catfriend1/syncthing-android/wiki
22+
Wiki, FAQ e articoli utili: https://github.com/Catfriend1/syncthing-android/tree/main/wiki#readme
3423

35-
Segnalazione problemi: https://github.com/Catfriend1/syncthing-android/issues
24+
Problemi: https://github.com/Catfriend1/syncthing-android/issues
3625

37-
Si prega di aiutare con il
26+
Aiuto con la
3827
Traduzione: https://hosted.weblate.org/projects/syncthing/android/catfriend1
Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1 @@
1-
🚀 Syncthing-Fork v2 has arrived on F-Droid and GitHub 🎉.
2-
⚡Please read https://github.com/Catfriend1/syncthing-android/blob/main/wiki/Important-News.md for instructions to do the upgrade. If you already have v2.0.7.0 or higher installed, no extra steps are needed.
3-
⚡Please read https://github.com/syncthing/syncthing/releases/tag/v2.0.10 to see details on the v2 milestone.
4-
5-
## What's Changed
6-
### Features
7-
Add floating exit button, for one-shot sync users (#1659)
1+
Updated SyncthingNative to v2.0.11

0 commit comments

Comments
 (0)