4978 Commits

Author SHA1 Message Date
Hans-Christoph Steiner
7db7cca716 update CHANGELOG for 1.0-alpha3 2017-09-12 22:38:00 +02:00
Hans-Christoph Steiner
445c275abe Merge branch 'fix-855--fs-corruption' into 'master'
Ignore errors that are likely due to filesystem corruption (rebase with added Toast)

Closes #855

See merge request !581
2017-09-12 20:25:58 +00:00
Hans-Christoph Steiner
9cc66e035a show Toast if InstalledAppProviderService encounters EIO errors
A notification would be better, but a Toast is better than nothing.
2017-09-12 21:44:48 +02:00
Peter Serwylo
dacebceff6 Ignore errors that are likely due to filesystem corruption.
There is a specific POSIX error "EIO" which seems to be the "general
purpose we don't know what went wrong but its probably bad" exception.
Our investigations in #855 resulted in the conclusion that it is likely
due to some sort of filesystem corruption or something like that.

Either way, it is annoying many people, so we need to prevent it or
ignore it, rather than prompting the user to submit a bug report.
After much investigation it was unable to be reproduced other than by
one of the original bug reporters. As such, this change ignores it.

Unfortunately Java `IOException`s don't have an API for getting the
errno of a POSIX IO error. Thus, this change results to parsing the
exception message instead :(

Fixes #855.
2017-09-12 21:35:08 +02:00
Hans-Christoph Steiner
42fa371e1b Merge branch 'weblate' into 'master'
Weblate

See merge request !580
2017-09-12 16:07:50 +00:00
Hans-Christoph Steiner
d65273cdb9 Weblate 2017-09-12 16:07:50 +00:00
Hans-Christoph Steiner
f4766a93c5 translation tools: detect missing "other" <item> from <plurals>
"other" is the only <item> that is required, or crashes are possible.
2017-09-12 17:38:59 +02:00
Hans-Christoph Steiner
6cb3cf1627 Merge branch 'issue-1143--performance' into 'master'
performance refactor for isApp --> isApk

Closes #1143 and #1156

See merge request !579
2017-09-12 15:34:52 +00:00
Peter Serwylo
71337a49b3 Added doc comment clarifying unsigned media 2017-09-12 16:51:44 +02:00
Peter Serwylo
3a3c170781 Fix CI failures (checkstyle/pmd) 2017-09-12 16:51:44 +02:00
Peter Serwylo
595f72d5b2 Calculate whether an app is an APK or not when updating repos.
This improves performance when we need to decide whether or not apps are
installed or not while scrolling through large lists.

Fixes #1143.

Also change Jackson tests to properly ignore App#isApk.
db-version/74
2017-09-12 16:51:44 +02:00
Peter Serwylo
ac1dce24d2 Don't assume all apps have a preferred signer, as media apps don't
Fixes #1156.
2017-09-12 16:38:33 +02:00
Peter Serwylo
620affa239 Remove unneeded join onto apk which was causing performance problems.
This join resulted in one row for each apk in the result set (before
doing a GROUP BY), instead of one row for each apk. That is a large
difference in number of rows and resulted in much more work for sqlite.
Turns out this join wasn't required.
2017-09-12 16:38:33 +02:00
Peter Serwylo
80259d00ba More precise (and correct) logging of slow queries in debug mode.
Some queries are deferred, and then forced to run by Android by invoking
`getCount()`. Under these circumstances, the measured speed of the query
execution is 1ms.

This adds speed logging around `getCount()` in case that is the first time
the query is run.
2017-09-12 16:38:33 +02:00
Hans-Christoph Steiner
d42d83321b gitlab-ci: don't fail build if clbin fails
clbin is just for making the logs easy to read, if it fails, the build
should not be marked as failed, especially since the logs are probably
not needed if the rest of the job succeeded.
2017-09-06 17:00:14 +02:00
Hans-Christoph Steiner
5144aedec9 Merge branch 'issue-1115--no-versions-multisig' into 'master'
Be more helpful when no versions available due to mismatching signatures.

Closes #1115

See merge request !577
2017-09-05 10:10:14 +00:00
Peter Serwylo
ba96819e40 Prompt user to go to settings to help with incompatible versions 2017-09-05 17:02:04 +10:00
Peter Serwylo
dd93df9ef2 Show mismatching sig apks when incompatible versions enabled.
This is in the spirit of the setting, where users can see which apks are
available even though they are not installable.

Adds a message explaining why it is incompatible (i.e. because the
signature doesn't match the installed version).
2017-09-05 17:02:01 +10:00
Peter Serwylo
ef717437a9 Explain multi-sig problems to user in app details. 2017-09-05 16:33:22 +10:00
Peter Serwylo
68e0f16b7c Minor simplification to view binding for app details.
Instead of casting to more specific view holders, all to call the
similarly named/behaved "bindModel()" method, push this to a base class.
2017-09-05 16:33:22 +10:00
Peter Serwylo
fc2093a9a6 Merge branch 'animation-fixes' into 'master'
Animation fixes

See merge request !566
2017-09-05 02:18:30 +00:00
Hans-Christoph Steiner
5739706cdd Build to 1000002 1.0-alpha2 2017-09-04 23:13:35 +02:00
Hans-Christoph Steiner
5e4095f3f1 update CHANGELOG for 1.0-alpha2 2017-09-04 23:13:24 +02:00
Hans-Christoph Steiner
15b27ef1f6 fix lint TypographyEllipsis programmatically 2017-09-04 23:12:35 +02:00
Mladen Pejaković
3ad8467135 Translated using Weblate (Serbian)
Currently translated at 100.0% (372 of 372 strings)
2017-09-04 22:53:16 +02:00
Gaman Gabriel
679e933bfd Translated using Weblate (Romanian)
Currently translated at 96.5% (359 of 372 strings)
2017-09-04 22:53:16 +02:00
Peter Serwylo
eb8af46a94 Merge branch 'fixes-for-1.0-alpha2' into 'master'
Fixes for 1.0 alpha2

Closes #1149

See merge request !573
2017-09-04 20:53:08 +00:00
Peter Serwylo
aa2d791531 Merge branch 'etag-fix' into 'master'
switch etag cache check to purely client-side

Closes #562

See merge request !574
2017-09-04 20:22:02 +00:00
Hans-Christoph Steiner
709919ada6 Merge branch 'weblate' into 'master'
Weblate

See merge request !575
2017-09-04 20:21:16 +00:00
Hans-Christoph Steiner
2bfa642046 Weblate 2017-09-04 20:21:15 +00:00
Hans-Christoph Steiner
a27d2804f3 manually use aapt singleCrunch for reproducible builds
PNG crunching is not a deterministic process, especially the way aapt does
it.  This makes the F-Droid builds not reproducible.  The easy solution to
this is to pre-crunch the PNGs and commit them to git.  It also makes the
final APK a tiny amount smaller, for whatever reason.

https://medium.com/@duhroach/smaller-pngs-and-android-s-aapt-tool-4ce38a24019d
2017-09-04 22:20:55 +02:00
Hans-Christoph Steiner
75d13d60ae move swap webpage's F-Droid.apk link so it doesn't get cleaned up
This is because of the previous commit.
2017-09-04 22:20:55 +02:00
Hans-Christoph Steiner
6651117f90 fix cleaning of temp install APKs
When the filenaming was changed in 91eb408 !514 this was not updated. So
now it is keeping these files forever, which gets large fast.

closes #1149
2017-09-04 22:20:55 +02:00
Hans-Christoph Steiner
0730d3c676 set App.preferredSigner when using index v0 #1086
This was an oversight when we added this functionality, though there was
a related TODO.

41f85f3c9df934daba0ee0d60c4c01bb071fa6e7
2017-09-04 22:20:55 +02:00
Hans-Christoph Steiner
312bc9f503 Merge branch 'swap-crash-serving-fdroid' into 'master'
Fix crash when trying to swap.

See merge request !563
2017-09-04 20:08:53 +00:00
Hans-Christoph Steiner
2550329ab5 switch etag cache check to purely client-side
Instead of including the etag in the HTTP GET request and letting the
server set the Response Code depending on whether the etag machines, this
makes the client first issue a HEAD request, which is uses to get the etag
and the file size.  We need to do the HEAD beforehand anyway to get the
file size for resumable downloads, and this approach prevents the server
from using the etag as a form of tracking cookie:
http://lucb1e.com/rp/cookielesscookies/

closes #562
2017-09-04 20:56:12 +02:00
Hans-Christoph Steiner
4dd27ef727 all <plurals> translations must have at least the "other" string
closes #1129
2017-09-04 20:44:53 +02:00
Hans-Christoph Steiner
2dbeb60666 Merge branch 'issue-995--installing-after-disabling-repo' into 'master'
Ensure apps are not kept in "Updates" when their repo is disabled.

Closes #995

See merge request !568
2017-09-01 14:00:00 +00:00
Hans-Christoph Steiner
fdd2a18199 Merge branch 'about-dialog' into 'master'
Apply selected theme to about dialog and dismiss it on touch outside

See merge request !572
2017-09-01 09:59:22 +00:00
Christine Emrich
0d874a7ee8 Dismiss about dialog on touch outside #1082 2017-08-30 22:24:04 +02:00
Christine Emrich
f8c81a47d9 Apply selected theme to about dialog in settings #1083 2017-08-30 22:21:09 +02:00
ByteHamster
8bfecc89fb Animation fixes
- Icon transition is no longer jumping in first frame (caused by different padding)
- Icon is no longer cropped at start of transition (caused by missing changeImageTransform)
- Toolbar icons are no longer animated. Introduced in !561 by changing the icons programmatically
2017-08-29 16:07:13 +02:00
Hans-Christoph Steiner
a48a92385e Merge branch 'issue-1117--empty-state-search' into 'master'
Empty search results now shows message (as in 0.102.3)

Closes #1117

See merge request !567
2017-08-29 14:00:39 +00:00
Peter Serwylo
d65d64f6f8 Merge branch 'screenshots-layout' into 'master'
Improve screenshots layout

See merge request !569
2017-08-28 23:05:09 +00:00
Chirayu Desai
7d95f80608 Merge branch 'antiFeatureWarningDark' into 'master'
Fix anti feature warning drawable in dark mode

Closes #1148

See merge request !570
2017-08-28 05:47:23 +00:00
Chirayu Desai
6b1bb92282 Fix anti feature warning drawable in dark mode 2017-08-28 10:40:26 +05:30
Christine Emrich
3250603000 Make screenshots bigger 2017-08-27 17:40:48 +02:00
Christine Emrich
e77281b99b Give screenshots some margin
This way the card views elevation can be displayed
properly and multiple screenshots don't merge together.
2017-08-27 17:35:39 +02:00
Christine Emrich
e9cdc5e952 Remove highlight from snapped screenshot #1068 2017-08-27 17:24:53 +02:00
Christine Emrich
9be13fd2ab Center screenshots when they don't fill screen width 2017-08-27 17:15:34 +02:00