4547 Commits

Author SHA1 Message Date
Felix Ableitner
07cd5e82fc Remove unused resources 2017-05-31 12:22:47 +09:00
Hans-Christoph Steiner
7c0c5b2490 Merge branch 'weblate' into 'master'
Weblate

See merge request !525
2017-05-30 16:03:04 +00:00
Hans-Christoph Steiner
702cf2dec8 Weblate 2017-05-30 16:02:59 +00:00
Hans-Christoph Steiner
c5f5eb6a05 Merge branch 'transitions' into 'master'
Fixed shared element transitions

See merge request !524
2017-05-29 18:55:48 +00:00
ByteHamster
ecf0b88c65 Fixed shared element transitions 2017-05-29 18:02:31 +02:00
Peter Serwylo
e46fccce95 Merge branch 'text-all-caps' into 'master'
Use proper way to set text all caps on old api

See merge request !521
2017-05-26 02:57:05 +00:00
Felix Ableitner
05b4a55c0a Use proper way to set text all caps on old api 2017-05-26 11:32:29 +09:00
Peter Serwylo
18bf71a149 Merge branch 'updates-tab' into 'master'
Displaying background in updates fragment

See merge request !522
2017-05-26 01:50:37 +00:00
Hans-Christoph Steiner
35df6afa53 move "by AuthorName" to a proper format for translations
The string was forcing English grammar on other languages.
2017-05-25 19:16:11 +02:00
ByteHamster
2c31b9f793 Displaying background in updates fragment 2017-05-24 20:06:14 +02:00
Hans-Christoph Steiner
7cf5f2496c Merge branch 'last-updated-time' into 'master'
Improve display of last updated time

See merge request !519
2017-05-22 18:59:10 +00:00
Felix Ableitner
371d8ede77 Improve display of last updated time 2017-05-22 18:59:09 +00:00
Hans-Christoph Steiner
d688831cf5 gitlab-ci: make blank/unused translate output clearer
This test now shows the actual blank/unused translations, so it should
be a lot clearer why this test is failing.

!519
2017-05-19 23:39:06 +02:00
Peter Serwylo
0506fd4d79 Merge branch 'ever-more-l18n' into 'master'
convert all relevant <string> to <plurals>

Closes #883

See merge request !516
2017-05-16 22:13:25 +00:00
Hans-Christoph Steiner
3f125b8e36 For "sk" (Slovak) "many" is not a relevant quantity 2017-05-16 10:39:16 +02:00
Hans-Christoph Steiner
e07e4fc223 convert strings to plurals, and make lint enforces this
Lots of languages really need the <plurals> tags to make sense, so
this also makes lint exit with an error when it finds strings that
should be <plurals>

closes #883
2017-05-16 10:39:16 +02:00
Hans-Christoph Steiner
d71514d628 Merge branch 'fix-1011-stacked-update-notifications' into 'master'
Force each stacked notification to have a different `requestCode`

Closes #1021

See merge request !518
2017-05-16 08:38:20 +00:00
Hans-Christoph Steiner
23e6539589 Merge branch 'use-apk-name-and-version-when-bluetoothing' into 'master'
Use apk name and version when bluetoothing

See merge request !514
2017-05-16 08:34:36 +00:00
Peter Serwylo
91eb408280 Use app name and version when bluetoothing to peer.
Previously, it would either send "base.apk" (in earlier versions of
F-Droid when bluetoothing an apk from the /data/app/... dirs), or
"install-[random].apk" (if recent F-Droid when copying file to a safe
place to expose via a FileProvider.

This now writes the file to, e.g. "F-Droid-0.103.1.apk" before sending.

Note that this means files are more likely to be overridden when being
sent, if the same apk from two different repositories is either:
 * Sent via bluetooth
 * Prompted to install via the system package manager

However this should still never let malicious people write to that
folder.
2017-05-16 08:40:54 +10:00
Peter Serwylo
e965e97623 Force each stacked notification to have a different requestCode.
This ensures that the `PendingIntent.FLAG_UPDATE_CURRENT` doesn't
continually override earlier intents with the last app to be notified.
This could probably equally be done by leaving the request code as 0 and
removing the FLAG_UPDATE_CURRENT out, however it seems much more
semantic to have a separate request code for each different pending
intent.

Fixes #1021.
2017-05-16 07:58:38 +10:00
Peter Serwylo
6002a97a03 Merge branch 'master' into 'master'
Change title and remove refresh action from repo management screen

See merge request !517
2017-05-15 21:57:04 +00:00
Stephen Michel
876f94e7ca Update repo management screen title 2017-05-15 12:02:02 -04:00
Stephen Michel
1f3271d72d remove refresh action from repo management screen 2017-05-15 11:52:28 -04:00
Hans-Christoph Steiner
0fb65d2cfd Bump to 0.103.1 v0.103.1 2017-05-13 00:10:20 +02:00
Hans-Christoph Steiner
94e4ded672 Merge branch 'master' into 'master'
last fixes for 0.103.1

Closes #1018, #943, and #1010

See merge request !515
2017-05-12 21:58:34 +00:00
Hans-Christoph Steiner
7c34c60a41 update CHANGELOG for release
closes #1018
2017-05-12 23:33:10 +02:00
Hans-Christoph Steiner
b848766436 remove translation auto-detect hack, it is too hacky
The hack that goes through and checks whether a language is present in
the APK seems to cause random strings to switch to English when the
app is running.  So this removes that hack, and instead switches the
Languages menu to a hard-coded list.  Languages that are not present
or close to complete were removed from the old list.

closes #943
closes #1010
2017-05-12 23:33:10 +02:00
Hans-Christoph Steiner
2d9e1ecd4f remove unused arguments to Languages.setLanguage() 2017-05-12 23:33:10 +02:00
Hans-Christoph Steiner
064be9482d Merge branch 'fix-837--file-provider-uri' into 'master'
Use file provider when bluetoothing apks

See merge request !511
2017-05-12 20:19:47 +00:00
Peter Serwylo
0df1f765e9 Don't die when failing to bluetooth apk. 2017-05-12 09:23:01 +10:00
Peter Serwylo
09ad7fe3d0 Use FileProvider when bluetoothing apks on API >= 24.
Reuses the code that the installer uses, when it broadcasts to
the relevant installer that an Apk is available for install.

This used to do the following:
 * Copy file to a private directory
 * Make the file world readable (so that PM can access it)
 * Send a file:// URI to the installer

The file:// URI is no longer supported for reasons explained in
the support lib FileProvider class. Now a content:// URI is required,
and that must explicitly grant permission to certain packages.

The existing code here used to grant permission to
org.fdroid.fdroid.privileged, and this code now also grants it to
com.android.bluetooth. I see no security threat with exposing these
files to both applications, because the .apk files only ever:
 * Were downloaded from the public internet into a (potentially public)
   cache dir.
 * Were sourced from an `ApplicationInfo#publicSourceDir, in which
   case any app can access that anyway.

Fises #837.
2017-05-12 09:22:57 +10:00
Peter Serwylo
2f4b00dc75 Formatting 2017-05-12 09:16:58 +10:00
Peter Serwylo
bf8aedd79c Merge branch '0.103.1-fixes' into 'master'
0.103.1 fixes

Closes #943 and #1012

See merge request !513
2017-05-11 22:40:30 +00:00
Hans-Christoph Steiner
7c2125c248 only remove incomplete translations if saved in a git remote 2017-05-11 09:39:00 +02:00
Hans-Christoph Steiner
1b390cceca clear language setting if it matches the system-wide setting
If the user can set the language using the Setting app, then there is
not reason to use the Languages hack.  This then clears the preference
if it matches the language of the system-wide locale.  This also
removes the current system-wide language from the Languages menu.

closes #943
2017-05-11 09:39:00 +02:00
Hans-Christoph Steiner
6456f56ced hide some lint warnings that cannot be fixed 2017-05-11 09:38:59 +02:00
Hans-Christoph Steiner
d1014f7b1f fix "Number formatting does not take into account locale settings."
lint says "Consider using String.format instead."
2017-05-11 09:38:59 +02:00
Hans-Christoph Steiner
186d1dbabb fix SetTextI18n lint warnings and set as error 2017-05-11 09:38:59 +02:00
Hans-Christoph Steiner
7702e72acb move lint config to lint.xml to enable ignoring specific files 2017-05-11 09:38:59 +02:00
Hans-Christoph Steiner
151c83218c do not crash if there are no cached APKs
closes #1012
2017-05-11 09:38:59 +02:00
Hans-Christoph Steiner
eff483d73e gitlab-ci: fail if translation strings need corrections
Since we have all these lovely scripts for cleaning up the
translations, gitlab-ci is a handy way to enforce that they get used.
Since weblate merges happen via merge requests, this will work nicely
now.  I can't think of any false positives that will arise, but we
shall find out!
2017-05-10 23:18:28 +02:00
Hans-Christoph Steiner
2ef9b279a8 remove all blank items from plurals 2017-05-10 23:18:28 +02:00
Hans-Christoph Steiner
38403338da remove xmlns tools:ignore from translations
XML namespaces are a massive pain to deal with in, and they are totally
unneeded in the translation files.  xmlns:tools is only needed in the
source file to ignore some lint warnings.
2017-05-10 23:18:28 +02:00
Hans-Christoph Steiner
3df626aed1 sync up translation scripts to use the same code
To keep these scripts simple and readible, it makes sense to keep them
as separate scripts.  But they should use the same approach as much as
possible.
2017-05-10 23:18:28 +02:00
Hans-Christoph Steiner
082b6091fc move all translation scripts to tools/
I think we should just move all the scripts to tools/, app/tools is
confusing, not very visible, and non-standard.
2017-05-10 23:18:28 +02:00
Hans-Christoph Steiner
b99e95304e remove pull-trans.sh, weblate is merged via merge requests now
gitlab handles the squashing, then we have a publicly available history
of the unsquashed commits in the merge request.
2017-05-10 23:18:28 +02:00
monolifed
924f192d97 Translated using Weblate (Turkish)
Currently translated at 100.0% (388 of 388 strings)
2017-05-10 23:18:03 +02:00
Jonatan Nyberg
4200d997a2 Translated using Weblate (Swedish)
Currently translated at 100.0% (388 of 388 strings)
2017-05-10 23:18:03 +02:00
Nine Lima
c2545aee88 Translated using Weblate (Afrikaans)
Currently translated at 100.0% (388 of 388 strings)
2017-05-10 23:18:03 +02:00
Hans-Christoph Steiner
e19cfd2831 Merge branch 'weblate' into 'master'
Weblate

See merge request !512
2017-05-10 18:25:29 +00:00