Commit Graph

2424 Commits

Author SHA1 Message Date
Simon Frei 58e02308aa
Revert using StrictMode VmPolicy only in debug build type (fixes #2032) (#2033)
This reverts commit f4ccad8329.
2024-01-02 12:24:46 +01:00
Simon Frei 6594955c00 Revert using StrictMode VmPolicy only in debug build type (fixes #2032)
This reverts commit f4ccad8329.
2024-01-02 12:12:07 +01:00
Simon Frei 5cabe050cc Bumped version to 1.27.2 2024-01-02 11:38:27 +01:00
Adam Szewera 9ed273a32e
Refactor groovy gradle files to kotlin dsl (#2022)
## Description:
Refactor gradle build files to use Kotlin DSL instead of Groovy.
There were also a bash script and a python script that needed to be
updated because they relied on parsing the `build.gradle` files written
in Groovy.

This PR completes the work started in:
https://github.com/syncthing/syncthing-android/pull/2000
2023-12-28 22:37:27 +01:00
Simon Frei 73bc845f98 Bumped version to 1.27.2-rc.2 2023-12-26 11:47:03 +01:00
Simon Frei 45312bc80a Add check for clean git to bump-version/release script 2023-12-26 11:44:54 +01:00
Simon Frei 4bb6474ccd Updated Syncthing to v1.27.2-rc.2 2023-12-26 11:44:39 +01:00
Simon Frei a2695c3267 Bumped version to 1.27.2-rc.1.1 2023-12-22 21:26:00 +01:00
Simon Frei b22aebba42 Merge branch 'release' 2023-12-22 21:24:19 +01:00
Simon Frei e553a5e357 Bumped version to 1.27.1.1 2023-12-22 20:59:43 +01:00
Simon Frei 30b55bbfaf Downgrade to 1.27.1 for stable release 2023-12-22 20:55:17 +01:00
Thomas De Rocker 0df67bb3c4
Translated using Weblate (Dutch)
Currently translated at 100.0% (369 of 369 strings)

Translation: Syncthing/Android app strings
Translate-URL: https://hosted.weblate.org/projects/syncthing/android/stringsxml/nl/
2023-12-21 11:20:09 +00:00
Simon Frei 2f14dee0e4 Bumped version to 1.27.2-rc.1 2023-12-17 20:34:51 +01:00
Simon Frei 3494d3c299 Updated Syncthing to v1.27.2-rc.1 2023-12-17 20:32:04 +01:00
Simon Frei d0520c5d80 Merge branch 'release' 2023-12-17 20:31:48 +01:00
Simon Frei a3199871ea Bumped version to 1.27.1 2023-12-11 21:16:36 +01:00
Hosted Weblate e3e764d861
Merge branch 'origin/main' into Weblate. 2023-12-10 17:15:44 +01:00
Adam Szewera ae31cedb2c
Simplify conditions that check for lollipop, api 21, version (#2023)
Lollipop, API 21, has been the min sdk version for over a year in this
project.
There were still some conditions in the code, which checked for api 21,
that can be removed or simplified.
2023-12-10 17:15:40 +01:00
109247019824 3cef84be22
Translated using Weblate (Bulgarian)
Currently translated at 97.2% (359 of 369 strings)

Translation: Syncthing/Android app strings
Translate-URL: https://hosted.weblate.org/projects/syncthing/android/stringsxml/bg/
2023-12-09 20:03:37 +00:00
Simon Frei 32ab0ca9d8 Remove bountysource from readme (fixes #2024) 2023-12-08 12:50:27 +01:00
Simon Frei cbae7bd29a Bumped version to 1.27.1-rc.1 2023-12-08 12:38:15 +01:00
Simon Frei f9965b5003 Updated Syncthing to v1.27.1-rc.1 2023-12-08 12:36:19 +01:00
Simon Frei e4471bc875 Bump dagger to 2.49 2023-12-05 23:30:33 +01:00
dependabot[bot] 60b092f749
Bump com.google.guava:guava from 32.1.2-android to 32.1.3-android (#1985)
Bumps [com.google.guava:guava](https://github.com/google/guava) from
32.1.2-android to 32.1.3-android.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/google/guava/releases">com.google.guava:guava's
releases</a>.</em></p>
<blockquote>
<h2>32.1.3</h2>
<h3>Maven</h3>
<pre lang="xml"><code>&lt;dependency&gt;
  &lt;groupId&gt;com.google.guava&lt;/groupId&gt;
  &lt;artifactId&gt;guava&lt;/artifactId&gt;
  &lt;version&gt;32.1.3-jre&lt;/version&gt;
  &lt;!-- or, for Android: --&gt;
  &lt;version&gt;32.1.3-android&lt;/version&gt;
&lt;/dependency&gt;
</code></pre>
<h3>Jar files</h3>
<ul>
<li><a
href="https://repo1.maven.org/maven2/com/google/guava/guava/32.1.3-jre/guava-32.1.3-jre.jar">32.1.3-jre.jar</a></li>
<li><a
href="https://repo1.maven.org/maven2/com/google/guava/guava/32.1.3-android/guava-32.1.3-android.jar">32.1.3-android.jar</a></li>
</ul>
<p>Guava requires <a
href="https://github.com/google/guava/wiki/UseGuavaInYourBuild#what-about-guavas-own-dependencies">one
runtime dependency</a>, which you can download here:</p>
<ul>
<li><a
href="https://repo1.maven.org/maven2/com/google/guava/failureaccess/1.0.1/failureaccess-1.0.1.jar">failureaccess-1.0.1.jar</a></li>
</ul>
<h3>Javadoc</h3>
<ul>
<li><a
href="http://guava.dev/releases/32.1.3-jre/api/docs/">32.1.3-jre</a></li>
<li><a
href="http://guava.dev/releases/32.1.3-android/api/docs/">32.1.3-android</a></li>
</ul>
<h3>JDiff</h3>
<ul>
<li><a href="http://guava.dev/releases/32.1.3-jre/api/diffs/">32.1.3-jre
vs. 32.1.2-jre</a></li>
<li><a
href="http://guava.dev/releases/32.1.3-android/api/diffs/">32.1.3-android
vs. 32.1.2-android</a></li>
<li><a
href="http://guava.dev/releases/32.1.3-android/api/androiddiffs/">32.1.3-android
vs. 32.1.3-jre</a></li>
</ul>
<h3>Changelog</h3>
<ul>
<li>Changed Gradle Metadata to include dependency versions directly.
This may address <a
href="https://redirect.github.com/google/guava/issues/6657">&quot;Could
not find <code>some-dependency</code>&quot; errors</a> that some users
have reported (which might be a result of users' excluding
<code>guava-parent</code>). (c6d35cf1a5)</li>
<li><code>collect</code>: Changed
<code>Multisets.unmodifiableMultiset(set).removeIf(predicate)</code> to
throw an exception always, even if nothing matches
<code>predicate</code>. (61dbccfda3)</li>
<li><code>graph</code>: Fixed the behavior of
<code>Graph</code>/<code>ValueGraph</code> views for a node when that
node is removed from the graph. (950799691c)</li>
<li><code>io</code>: Fixed <code>Files.createTempDir</code> and
<code>FileBackedOutputStream</code> under <a
href="https://redirect.github.com/google/guava/issues/6634">Windows
<em>services</em>, a rare use case</a>. (The fix actually covers only
Java 9+ because Java 8 would require an additional approach. Let us know
if you need support under Java 8.) (f87f68cd3e)</li>
<li><code>net</code>: Made <code>MediaType.parse</code> allow and skip
over whitespace around the <code>/</code> and <code>=</code> separator
tokens in addition to the <code>;</code> separator, for which it was
already being allowed. (2786f83291)</li>
<li><code>util.concurrent</code>: Tweaked
<code>Futures.getChecked</code> constructor-selection behavior: The
method continues to prefer to call constructors with a
<code>String</code> parameter, but now it breaks ties based on whether
the constructor has a <code>Throwable</code> parameter. Beyond that, the
choice of constructor remains undefined. (For this and other reasons, we
discourage the use of <code>getChecked</code>.) (59cfb2267a)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li>See full diff in <a
href="https://github.com/google/guava/commits">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=com.google.guava:guava&package-manager=gradle&previous-version=32.1.2-android&new-version=32.1.3-android)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

You can trigger a rebase of this PR by commenting `@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

> **Note**
> Automatic rebases have been disabled on this pull request as it has
been open for over 30 days.

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-05 23:27:09 +01:00
Adam Szewera f4ccad8329
Use StrictMode VmPolicy only in debug build type (#2002)
`StrictMode` makes sense mainly in for debug build types, enabling
it for release does not provide any value as it can add additional overhead and its logs going to be removed (because R8 strips them).
2023-12-05 23:17:41 +01:00
Simon Frei 179a45ce65 Bumped version to 1.27.0 2023-12-05 22:30:00 +01:00
André Colomb ae27e7bb4d
Translated using Weblate (German)
Currently translated at 100.0% (369 of 369 strings)

Translation: Syncthing/Android app strings
Translate-URL: https://hosted.weblate.org/projects/syncthing/android/stringsxml/de/
2023-12-05 22:23:11 +01:00
Eric 6dd53e0a4b Translated using Weblate (Chinese (Simplified))
Currently translated at 100.0% (369 of 369 strings)

Translation: Syncthing/Android app strings
Translate-URL: https://hosted.weblate.org/projects/syncthing/android/stringsxml/zh_Hans/
2023-12-05 18:37:17 +01:00
gallegonovato c2947aec8f Translated using Weblate (Spanish)
Currently translated at 100.0% (369 of 369 strings)

Translation: Syncthing/Android app strings
Translate-URL: https://hosted.weblate.org/projects/syncthing/android/stringsxml/es/
2023-12-05 18:37:17 +01:00
Burak Yavuz f071fa7c32 Translated using Weblate (Turkish)
Currently translated at 100.0% (369 of 369 strings)

Translation: Syncthing/Android app strings
Translate-URL: https://hosted.weblate.org/projects/syncthing/android/stringsxml/tr/
2023-12-05 10:21:38 +01:00
Matthaiks 5726680a1b Translated using Weblate (Polish)
Currently translated at 100.0% (369 of 369 strings)

Translation: Syncthing/Android app strings
Translate-URL: https://hosted.weblate.org/projects/syncthing/android/stringsxml/pl/
2023-12-05 10:21:38 +01:00
Michal Čihař 74d67babf1 Translated using Weblate (Czech)
Currently translated at 97.2% (359 of 369 strings)

Translation: Syncthing/Android app strings
Translate-URL: https://hosted.weblate.org/projects/syncthing/android/stringsxml/cs/
2023-12-05 10:21:25 +01:00
Matthaiks 7ad7569e60 Translated using Weblate (Polish)
Currently translated at 100.0% (369 of 369 strings)

Translation: Syncthing/Android app strings
Translate-URL: https://hosted.weblate.org/projects/syncthing/android/stringsxml/pl/
2023-12-05 10:21:25 +01:00
Matthaiks acfc3f570a Translated using Weblate (Polish)
Currently translated at 100.0% (369 of 369 strings)

Translation: Syncthing/Android app strings
Translate-URL: https://hosted.weblate.org/projects/syncthing/android/stringsxml/pl/
2023-12-05 10:21:25 +01:00
André Colomb 623a0fc9de Translated using Weblate (German)
Currently translated at 100.0% (369 of 369 strings)

Translation: Syncthing/Android app strings
Translate-URL: https://hosted.weblate.org/projects/syncthing/android/stringsxml/de/
2023-12-05 10:21:25 +01:00
LBF38 5af44fe8bb
Add export/import support for HTTPS files (fixes #1986) (#2013)
Add support for exporting and importing HTTPS related files
(`https-cert.pem` and `https-key.pem`). It can be used to export/import
a self-signed certificate/custom HTTPS certificate to the Syncthing
instance on Android.

I couldn't launch the app in my IDE so I didn't test the changes. 

Closes #1986
2023-12-03 23:20:08 +01:00
Adam Szewera 856495ab0d
Add JitPack repo and update libsuperuser dependency (#2001)
## Description
Back in 2021 [JFrog
announced](https://jfrog.com/blog/into-the-sunset-bintray-jcenter-gocenter-and-chartcenter/)
that they are deprecating the JCenter repository. It's still read-only
but it shouldn't be depended upon.

I was trying to remove it in the other PR:
https://github.com/syncthing/syncthing-android/pull/2000, but then I
found out a single dependency still needs it:
[libsuperuser](https://github.com/Chainfire/libsuperuser).
The most "up to date" version [can be found in
JitPack](https://jitpack.io/#Chainfire/libsuperuser).
I had to update the version manually as dependabot would never pick it
up until JitPack is added to the list of repositories.

## Changes
* add the JitPack as a new repository to the project
* update the `libsuperuser` dependency to version `1.1.1`
2023-11-30 21:44:35 +01:00
André Colomb 52bd276ca9
i18n: Indirect string-array declarations through arrays.xml (#2012)
This fixes missing strings in Weblate translation, although they are
supposedly in the strings.xml files.

Introduce string-array elements matching those from the source
strings.xml, but instead pointing to a `@string` reference. The latter
is to be translated based on the assigned sub item's key.

Weblate does not handle string-arrays, but needs this indirection, see
https://docs.weblate.org/en/latest/formats/android.html

All existing translations are pulled in by migrating the `<string-array
name="..."><item>...` elements to `<string name="...">` elements
instead. This was done using an XSLT stylesheet, so can be easily
reproduced.

**IMPORTANT, MERGING ORDER:**
1. [x] The automated Weblate PR should be merged first, after committing
any outstanding translation changes on Weblate.
2. [x] Then rebase this branch, best re-applying the XSLT in case of
conflicts.
3. [ ] Then merge this PR.
2023-11-30 21:43:57 +01:00
Simon Frei 91366312db Bumped version to 1.27.0-rc.2 2023-11-28 22:37:57 +01:00
Simon Frei 2cb6ba3874 Updated Syncthing to v1.27.0-rc.2 2023-11-28 22:35:40 +01:00
Weblate (bot) 5fc87d6a87
Translations update from Hosted Weblate (#2010)
Translations update from [Hosted Weblate](https://hosted.weblate.org)
for [Syncthing/Android app
strings](https://hosted.weblate.org/projects/syncthing/android/stringsxml/).


It also includes following components:

* [Syncthing/Google Play
listings](https://hosted.weblate.org/projects/syncthing/android/play-listings/)



Current translation status:

![Weblate translation
status](https://hosted.weblate.org/widget/syncthing/android/stringsxml/horizontal-auto.svg)

---------

Co-authored-by: Masowick <Demian@gmx.co.uk>
Co-authored-by: Thomas De Rocker <thomasderocker@outlook.com>
Co-authored-by: Catfriend1 <16361913+Catfriend1@users.noreply.github.com>
Co-authored-by: Tomasz Wilczyński <twilczynski@naver.com>
Co-authored-by: Giorgos Skafidas <giorgos@skafidas.online>
Co-authored-by: Burak Yavuz <hitowerdigit@hotmail.com>
Co-authored-by: Emanuel Angelo <emanuel.angelo@gmail.com>
Co-authored-by: innesi <cheungh.kevin@gmail.com>
2023-11-28 22:21:27 +01:00
Simon Frei e18bff3b95 Bumped version to 1.26.1 2023-11-15 19:32:47 +01:00
Simon Frei b7658b759a Updated Syncthing to v1.26.1 2023-11-15 19:31:31 +01:00
André Colomb d3fe7fe4fe
i18n: Use proper Unicode ellipsis, other clean-ups (#2005)
Update all `strings.xml` translation files to replace triple full-stop
with proper Unicode ellipsis. Fix other syntax problems and cosmetics in
translation source `strings.xml`.
2023-11-15 18:24:42 +01:00
Weblate (bot) 2e06e0f525
Translations update from Hosted Weblate (#2007)
Translations update from [Hosted Weblate](https://hosted.weblate.org)
for [Syncthing/Android app
strings](https://hosted.weblate.org/projects/syncthing/android/stringsxml/).


It also includes following components:

* [Syncthing/Google Play
listings](https://hosted.weblate.org/projects/syncthing/android/play-listings/)



Current translation status:

![Weblate translation
status](https://hosted.weblate.org/widget/syncthing/android/stringsxml/horizontal-auto.svg)

---------

Co-authored-by: André Colomb <src@andre.colomb.de>
Co-authored-by: Masowick <Demian@gmx.co.uk>
Co-authored-by: Ettore Atalan <atalanttore@googlemail.com>
Co-authored-by: Eric <zxmegaxqug@hldrive.com>
Co-authored-by: Burak Yavuz <hitowerdigit@hotmail.com>
Co-authored-by: Erik van Oosten <e.vanoosten@grons.nl>
Co-authored-by: Tomasz Wilczyński <twilczynski@naver.com>
Co-authored-by: Matthaiks <kitynska@gmail.com>
Co-authored-by: gallegonovato <fran-carro@hotmail.es>
2023-11-14 23:43:36 +01:00
Simon Frei fb50ba1d6e Bumped version to 1.27.0-rc.1.1 2023-11-14 23:26:17 +01:00
Weblate (bot) 3b41a64317
Translations update from Hosted Weblate (#1999)
Translations update from [Hosted Weblate](https://hosted.weblate.org)
for [Syncthing/Android app
strings](https://hosted.weblate.org/projects/syncthing/android/stringsxml/).


It also includes following components:

* [Syncthing/Google Play
listings](https://hosted.weblate.org/projects/syncthing/android/play-listings/)



Current translation status:

![Weblate translation
status](https://hosted.weblate.org/widget/syncthing/android/stringsxml/horizontal-auto.svg)

---------

Co-authored-by: André Colomb <src@andre.colomb.de>
Co-authored-by: Masowick <Demian@gmx.co.uk>
Co-authored-by: Ettore Atalan <atalanttore@googlemail.com>
Co-authored-by: Eric <zxmegaxqug@hldrive.com>
Co-authored-by: Burak Yavuz <hitowerdigit@hotmail.com>
Co-authored-by: Erik van Oosten <e.vanoosten@grons.nl>
Co-authored-by: Tomasz Wilczyński <twilczynski@naver.com>
Co-authored-by: Matthaiks <kitynska@gmail.com>
Co-authored-by: gallegonovato <fran-carro@hotmail.es>
2023-11-14 23:24:40 +01:00
Simon Frei 55fa4ba4c3 Bumped version to 1.27.0-rc.1 2023-11-14 23:14:00 +01:00
Simon Frei 39085dbdba Updated Syncthing to v1.27.0-rc.1 2023-11-14 23:12:52 +01:00
André Colomb 24fa7c3620
Remove outdated drawer entry for CPU usage (#2004)
The code to calculate this metric has long been removed from the backend upstream, in commit c7d6a6d780.

Thus the GUI element should go away as well, currently always displaying 0 percent anyways.

Ref https://github.com/syncthing/syncthing/pull/6393
2023-11-13 20:51:36 +01:00