5735 Commits

Author SHA1 Message Date
Hans-Christoph Steiner
886cd0b1bf version code 1006001 1.6-alpha1 2019-02-21 00:21:55 +01:00
Hans-Christoph Steiner
3a992c10d2 update CHANGELOG 2019-02-21 00:21:55 +01:00
Hans-Christoph Steiner
72d33ffe3d remove empty changelog translations 2019-02-21 00:21:55 +01:00
Hosted Weblate
bd93c5743f clean up whitespace and formatting in strings.xml 2019-02-21 00:21:55 +01:00
Hans-Christoph Steiner
8da7fc5103 set comments to point out button labels to translators
closes #1678
2019-02-21 00:21:55 +01:00
Hans-Christoph Steiner
7ce7b46ed2 metadata: script to delete 0 size files and standardize whitespace 2019-02-21 00:21:55 +01:00
Hans-Christoph Steiner
9897c97ef8 Merge branch 'switches-to-disable-mirrors' into 'master'
add switches to disable mirrors

Closes #1696

See merge request fdroid/fdroidclient!795
2019-02-20 23:21:27 +00:00
Hans-Christoph Steiner
6a18ba1b85 RepoDetails: hide mirror lists if they are not useful
e.g., empty lists or the official mirror list just repeating the canonical
URL.
2019-02-21 00:18:25 +01:00
Hans-Christoph Steiner
b1569795a2 IndexV1Updater: use LinkedHashSet to preserve mirror ordering 2019-02-21 00:18:25 +01:00
Hans-Christoph Steiner
c3ec29df93 RepoDetails: add switches to disable any or all mirrors
This also needs to handle mirror lists with 1 element, since mirrors can
now be disabled. If the user disables all mirrors, then there will be only one URL in the
list of mirrors.  Asking for a random mirror in that case should not return
null, but the one enabled mirror.


closes #1696
db-version/80
2019-02-20 21:10:34 +01:00
Hans-Christoph Steiner
a81a61be61 RepoDetails: convert mirror lists to have on/off switches 2019-02-20 15:59:29 +01:00
Hans-Christoph Steiner
2b1f851617
standardize whitespace formating for fastlane files
```python
import glob
for f in glob.glob('metadata/*/*.txt'):
    with open(f) as fp:
        data = fp.read()
    with open(f, 'w') as fp:
        fp.write(data.rstrip())
        fp.write('\n')
```

for f in metadata/*/short_description.txt; do data=`cat $f`; echo $data > $f; done
2019-02-20 15:26:50 +01:00
Hans-Christoph Steiner
0f08a66696 Merge branch 'randomize-package-downloads' into 'master'
Randomize package downloads

Closes #1708

See merge request fdroid/fdroidclient!794
2019-02-20 13:46:04 +00:00
Hans-Christoph Steiner
14b4a7e00a cache all downloads based on canonical URL, not download URL
This makes the download cache be shared across all mirrors used to download
rather than having a cache per-mirror.
2019-02-20 13:39:26 +01:00
Hans-Christoph Steiner
dd14b9e315 choose random mirror for each package/APK download
This spreads downloads across all available mirrors randomly.  This could
definitely be improved, like choosing the fastest or nearest mirror, or
only .onion addresses on Tor.  This will improve the current situation and
should reduce the load on f-droid.org a lot.

fdroidclient#1696
2019-02-20 13:39:26 +01:00
Hans-Christoph Steiner
89422e9c8f clarify get mirrors method: Repo.getRandomMirror() 2019-02-20 13:39:26 +01:00
Hans-Christoph Steiner
cf9a6b851d RepoAdapter: code cleanup
Remove unused code and simplify to only present args that are used. This is
remnants from:

fdroidclient#490
fdroidclient#606
fdroidclient!295
fdroidclient!242
2019-02-20 13:39:26 +01:00
Hans-Christoph Steiner
afe6de94a0 handle Apache and Nginx ETags when checking if index is current
fdroid/fdroidclient#1708
2019-02-20 13:39:22 +01:00
Hans-Christoph Steiner
9323ccdfd1 add HTTP Last-Modified header to nearby/swap webserver
This should support the new cache check scheme when using swap repos.
2019-02-19 11:17:09 +01:00
Hans-Christoph Steiner
9522012fe1 use built-in constants for HTTP status codes 2019-02-19 11:17:09 +01:00
Hans-Christoph Steiner
07971080c4 Merge branch 'random-fixes' into 'master'
Random fixes

Closes #1715

See merge request fdroid/fdroidclient!793
2019-02-18 23:40:21 +00:00
Hans-Christoph Steiner
b632066ca7 gitlab-ci: only run the reliable emulators on merge requests 2019-02-18 23:58:10 +01:00
Hans-Christoph Steiner
683a990da8 include test string comment to see if Weblate supports them 2019-02-18 23:52:41 +01:00
Hans-Christoph Steiner
b5de4898b1 improve "try it" permissions prompt on Nearby screen
This should make all the translations fit on the screen properly.

closes #1715
2019-02-18 23:52:41 +01:00
Hans-Christoph Steiner
8e8d4a4af6 espresso tests: print RAM info to logcat 2019-02-18 23:52:40 +01:00
Hans-Christoph Steiner
181f2ec292 version code 1006000 1.6-alpha0 2019-02-15 16:00:12 +01:00
Hans-Christoph Steiner
6847dc656a update changelog 2019-02-15 16:00:12 +01:00
Hans-Christoph Steiner
a8fbb64f5a gitlab-ci: remove flaky emulator test 21/22 and make 23 optional 2019-02-15 16:00:12 +01:00
Hans-Christoph Steiner
e30e5004f1 Merge branch 'weblate' into 'master'
Weblate

See merge request fdroid/fdroidclient!792
2019-02-15 14:58:59 +00:00
Hans-Christoph Steiner
bb597537f2 Translated using Weblate (Chinese (Simplified))
Currently translated at 100.0% (428 of 428 strings)
2019-02-15 14:58:59 +00:00
Hans-Christoph Steiner
1ed99835a0 remove-unused-and-blank-translations.py: force Android/Weblate XML format
https://github.com/WeblateOrg/weblate/issues/1886
https://github.com/WeblateOrg/weblate/issues/2333
2019-02-15 14:46:34 +01:00
Hans-Christoph Steiner
1587505389 Merge branch 'mirror-tweaks' into 'master'
mirror tweaks

Closes #1702

See merge request fdroid/fdroidclient!789
2019-02-15 13:24:09 +00:00
Hans-Christoph Steiner
251391f051 Merge branch 'fix-back-animation' into 'master'
fix activity transitions by limiting view rebinding

Closes #1636

See merge request fdroid/fdroidclient!781
2019-02-15 07:28:57 +00:00
Conny Duck
074f72f58a fix activity transitions by limiting view rebinding 2019-02-15 07:28:57 +00:00
Hans-Christoph Steiner
c0123eb01b
metadata: rename description.txt to Fastlane's full_description.txt
This is required to make Weblate find these files.
2019-02-14 20:48:24 +01:00
Hans-Christoph Steiner
e33da7200b
metadata: rename summary.txt to Fastlane's short_description.txt 2019-02-14 20:47:39 +01:00
Hans-Christoph Steiner
ac406c5323 metadata: remove redundant pt locale 2019-02-14 20:33:17 +01:00
Hans-Christoph Steiner
c64fb61855 metadata: add title so it can be localized 2019-02-14 20:28:53 +01:00
Hans-Christoph Steiner
8276ab004e
move summary/description source/translations from fdroiddata
Weblate can now handle these directly:
https://hosted.weblate.org/projects/f-droid/f-droid-metadata/
2019-02-14 20:21:20 +01:00
Hans-Christoph Steiner
57b587dfe3 Some users never use WiFi, check for that state on first run
Lots of people complain that the graphics aren't being downloaded.  That's
because they never use F-Droid while on WiFi and the default prefs do not
allow downloading graphics while on Data.  This sets the preference to
allow downloading graphics while on Data if only Data is enabled, and not
WiFi, when the user first starts F-Droid.

closes #1592
2019-02-14 15:33:57 +01:00
Hans-Christoph Steiner
aebf7efc10 add canonical URL as first item in ordered mirror list
This makes it display nicely in RepoDetails, and is natural, since it is
the canonical URL.  This also maintains the order as received from the
mirror entries in the index file.
2019-02-14 15:33:57 +01:00
Hans-Christoph Steiner
421270ad5f handle implied READ_EXTERNAL_STORAGE permissions
Having _WRITE_EXTERNAL_STORAGE_ will implied _READ_EXTERNAL_STORAGE_:
https://developer.android.com/reference/android/Manifest.permission#READ_EXTERNAL_STORAGE

closes #1702
2019-02-14 15:33:57 +01:00
Hans-Christoph Steiner
66ac4bcec3 also set Read Timeout with mirror logic timeout value
The Read Timeout makes a SocketTimeoutException be thrown if the timeout
expires before data is available for reading from the connection's
returned InputStream.  This should help the client switch to a new mirror
when the current mirror is too slow or overloaded.
2019-02-14 15:33:31 +01:00
Hans-Christoph Steiner
8f854c2c6e improve source string language for auto-updates pref 2019-02-14 15:33:31 +01:00
Hans-Christoph Steiner
71884c16b1 clarify mirror timeout logic with constants
This should make the timeout logic clearer, without changing the logic at
all.  This does increase the timeouts, with the second pass using 1 minute
instead of 30 seconds, and the third pass using 10 minutes instead of 1
minute.  Since this often or usually runs in the background, it should
allow some pretty long timeouts in the worst case.
2019-02-14 15:33:31 +01:00
Hans-Christoph Steiner
eb12bc1645 Merge branch 'patch-1' into 'master'
Fix date of v1.5.1 in CHANGELOG.md

See merge request fdroid/fdroidclient!788
2019-02-14 14:26:49 +00:00
riQQ
9a534b8dea Fix date of v1.5.1 in CHANGELOG.md 2019-02-06 20:19:55 +00:00
Hans-Christoph Steiner
ed798c393b Merge branch 'changelog_1.5' into 'master'
changelog additions for 1.5 and 1.5.1

See merge request fdroid/fdroidclient!787
2019-01-10 13:37:04 +00:00
Hans-Christoph Steiner
e7c8abbeed gitlab-ci: android-19 and android-24 emulators are too flaky, removing 2019-01-10 14:34:59 +01:00
Marcus Hoffmann
84d1b75445 changelog additions for 1.5 and 1.5.1 2019-01-10 14:25:28 +01:00