593 Commits

Author SHA1 Message Date
Peter Serwylo
f635df8502 Merge branch 'master' into new-swap 2015-09-02 17:01:58 +10:00
Daniel Martí
d079d7770e Bump to 0.96-alpha6 2015-08-29 21:44:03 -07:00
Daniel Martí
47352eddd0 Use a more generic comment on -keep proguard rules 2015-08-29 21:42:50 -07:00
Hans-Christoph Steiner
dc46bc2e84 update proguard config to not strip needed classes
This stops the stripping of classes required for the swap stuff.  proguard
strips all sorts of stuff that is needed because of things like dynamic
loading, reflection, etc.

fixes #391 https://gitlab.com/fdroid/fdroidclient/issues/391
2015-08-28 09:55:42 +02:00
Daniel Martí
85c83045f3 Fix esperanto string formatting
Also fixed in translatewiki
2015-08-27 09:44:20 -07:00
Daniel Martí
cbaa8676fc Merge branch '0.96-swap-fixes' into 'master'
0.96 swap fixes

This fixes the swap issues that I could find, except for #391. @mvdan feel free to beat @pserwylo to this, I just assigned it to him because its swap.

See merge request !127
2015-08-27 16:35:13 +00:00
Daniel Martí
22ad6260c7 Add new languages to languageValues
As reported by list-missing-langs-setting
2015-08-27 09:31:52 -07:00
F-Droid Translatebot
2740743320 Translation updates 2015-08-27 10:07:20 +00:00
Hans-Christoph Steiner
303de3d972 temporarily disable broken HTTPS support in swap
Right now, turning on HTTPS really just prevents things from working.  It
is not fully required, since swapping is only local connections, so not
easily susceptible to mass eavesdropping, though it would be nice.  I'm
leaving the rest of the plumbing for this here intact for when we come back
to getting swap always using HTTPS.

closes #378 https://gitlab.com/fdroid/fdroidclient/issues/378
2015-08-27 11:05:36 +02:00
Hans-Christoph Steiner
04e318c9ca force swap X.509 cert generation to use English/Gregorian times
When using locales that use different calendars, like Farsi, Arabic,
Hebrew, etc. there was a crash in spongycastle's X.509 generation because
it was trying to parse a Farsi date string as English.

fixes #334 https://gitlab.com/fdroid/fdroidclient/issues/334

Here's the original stacktrace:
    java.lang.IllegalArgumentException: invalid date string: Unparseable date: "ñõðøòñðóñõõóGMT+00:00" (at offset 0)
            at org.spongycastle.asn1.ASN1UTCTime.<init>(ASN1UTCTime.java:115)
            at org.spongycastle.asn1.DERUTCTime.<init>(DERUTCTime.java:23)
            at org.spongycastle.asn1.x509.Time.<init>(Time.java:67)
            at org.spongycastle.cert.X509v3CertificateBuilder.<init>(X509v3CertificateBuilder.java:40)
            at org.fdroid.fdroid.localrepo.LocalRepoKeyStore.generateSelfSignedCertChain(LocalRepoKeyStore.java:301)
            at org.fdroid.fdroid.localrepo.LocalRepoKeyStore.generateSelfSignedCertChain(LocalRepoKeyStore.java:281)
            at org.fdroid.fdroid.localrepo.LocalRepoKeyStore.<init>(LocalRepoKeyStore.java:136)
            at org.fdroid.fdroid.localrepo.LocalRepoKeyStore.get(LocalRepoKeyStore.java:73)
            at org.fdroid.fdroid.net.WifiStateChangeService$WaitForWifiAsyncTask.doInBackground(WifiStateChangeService.java:124)
            at org.fdroid.fdroid.net.WifiStateChangeService$WaitForWifiAsyncTask.doInBackground(WifiStateChangeService.java:62)
2015-08-27 11:05:35 +02:00
Hans-Christoph Steiner
9e939131b7 Utils.calcFingerprint() should always return null if given null
#334 https://gitlab.com/fdroid/fdroidclient/issues/334
2015-08-27 11:05:35 +02:00
Ciaran Gultnieks
ba3b90bdf6 Use a more compatible (?) path for env 2015-08-27 10:04:46 +01:00
Daniel Martí
e7c727f446 Don't minify zipsigner, fixes #391 2015-08-26 13:38:35 -07:00
Daniel Martí
67ceaec460 Follow-up to e8ebb0: forgot one string with markup 2015-08-26 13:30:43 -07:00
Daniel Martí
a2b924837a Bump to 0.96-alpha5 2015-08-25 21:38:20 -07:00
Daniel Martí
bfcd88ebb2 Use activity context in AppDetails, fixes #388 2015-08-25 21:21:35 -07:00
Daniel Martí
752c7c7022 Bump to 0.96-alpha4 2015-08-24 11:43:33 -07:00
Daniel Martí
9860008549 Fix format issue in pt-rBR
Also fixed it in translatewiki
2015-08-24 11:43:33 -07:00
Daniel Martí
f07497a39c Revert appcompat-v7 to 22.1.1. Closes #356.
22.2.* have an issue where all the text in the app becomes gray, both in the
light and dark themes. We'll see if appcompat 23.* fixes this issue.
2015-08-24 11:37:11 -07:00
Daniel Martí
64c1d7fa04 Run fix-ellipsis 2015-08-24 11:29:25 -07:00
Daniel Martí
a92288b342 Make fix-ellipsis also replace &#8230; 2015-08-24 11:29:16 -07:00
Daniel Martí
138859ccd6 Fix duplicate %s in bg string
Also fixed it in translatewiki.
2015-08-24 11:22:02 -07:00
Daniel Martí
e8ebb0069b Don't use html/markup in strings. Closes #290.
Also fixes the build.

There hasn't been a reply to the issue in months, and there's only one string
using them.
2015-08-24 11:09:26 -07:00
Daniel Martí
74e34ee695 Run remove-unused-trans 2015-08-24 11:04:56 -07:00
Daniel Martí
d250f4cafb Run remove-empty-trans 2015-08-24 11:04:47 -07:00
Daniel Martí
ef56f8db88 Revert "Add timeout for Http request" merge
See !117 and #387

This reverts commit e895d1f0d3d6b333eeaa3e82e58392b58d647c33, reversing
changes made to 8d5c7abe89f98d4c8248e0b50eb8857f2a31f049.
2015-08-24 11:02:54 -07:00
F-Droid Translatebot
63761ead27 Translation updates 2015-08-24 10:16:20 +00:00
Nico Alt
4331fa4047 Revert "Prompt for beta updates"
This reverts commit 92f8678b3d2da18ad93bac6af0ae83984cf74714.
2015-08-22 10:04:42 +02:00
Daniel Martí
478ff88a82 Don't crash if we couldn't generate a certificate
Another crash workaround for #334. Even though this null check should be left
there, since getCertificate() may return null for whatever reason.
2015-08-20 21:14:38 -07:00
Daniel Martí
d8b4fc403d Bump to 0.96-alpha3 2015-08-20 19:32:41 -07:00
Daniel Martí
1f41bbdc0d Replace printStackTrace with proper Log.e calls 2015-08-20 19:28:30 -07:00
Daniel Martí
8669fddd70 Properly log exceptions 2015-08-20 19:21:50 -07:00
Daniel Martí
ce8c928337 Move some Log.i to debug logs
These don't look like they will be useful to users at all.
2015-08-20 19:09:27 -07:00
Daniel Martí
c9cdc1a5dc Remove all Log.d calls from release builds 2015-08-20 18:59:14 -07:00
Daniel Martí
d04f26b6e4 Raise some log message priorities 2015-08-20 18:59:13 -07:00
Daniel Martí
96014a7365 Simplify debugging logging via Utils 2015-08-20 18:37:25 -07:00
Daniel Martí
4c75f6078d Disable lint warnings in command-line builds
There are just too many now, and they hide actual compilation errors.

They can still be viewed in the HTML report.
2015-08-20 18:05:34 -07:00
Daniel Martí
2d14e3c1c4 Temporarily work-around for repo update crashes
On certain locales, F-Droid would crash at startup due to #334.

This isn't a proper fix, but rather a workaround that logs what happened and
links to the issue, instead of making F-Droid crash entirely.
2015-08-20 17:49:57 -07:00
Daniel Martí
f0481ffa14 Support libs will never be built from source
We can't rely on their plugin versions to be compatible with ours. Besides,
they require tons of Android SDK targets to be installed to build.

They are already bundled with the SDK, so you can build them as part of the
SDK from source if you want to.
2015-08-20 10:35:18 -07:00
Daniel Martí
05285d23b7 Replace fdroid.org with f-droid.org 2015-08-20 10:06:01 -07:00
Daniel Martí
e4527da122 Prepare for sdk level 23 2015-08-20 09:56:57 -07:00
Peter Serwylo
133cabeed8 Let user select wifi network. Prevent "Send F-Droid" if no bluetooth.
Include support for libaccesspoint to control the WiFiAP of a device.

Selecting wifi networks i snow possible by touching the name of the
wifi network in the "Start Swap" screen (sometimes it will say
"No network yet"). This exhibits the same behaviour as the "Join Wifi"
screen used to (and still does) do.

On emulators (is there other devices too?), Bluetooth is unavailable,
but the "Send F-Droid" is still there. I could remove it, but then
people may get confused as to why it is not there. Instead, there is
now a dialog which explains why it can't be sent (no Bluetooth).
2015-08-20 21:46:07 +10:00
Daniel Martí
3f5b5ffc93 Avoid package receiver NPE crashes. Fixes #380. 2015-08-19 11:19:59 -07:00
Daniel Martí
968b35f324 Update notes about discontinued libraries 2015-08-18 19:42:01 -07:00
Daniel Martí
33e09cc344 Don't use multi-arg compiles in gradle
Easier to keep line changes simpler this way.
2015-08-18 19:32:38 -07:00
Peter Serwylo
2182ff4c59 Comment out the "Help" icon in start swap screen for now.
In the future, this should be implemented with a relevant help screen,
but for now it is more than we have time for. It will require, not only
good content which is translatable, but also a generic approach so that
it can be used elsewhere in F-Droid too.
2015-08-19 08:44:55 +10:00
Daniel Martí
780f77dab9 Don't show menu item to enable NFC if not available
Follow-up to #379
2015-08-18 14:16:50 -07:00
Daniel Martí
997b4a4698 Run remove-unused-trans.py 2015-08-18 13:16:02 -07:00
Daniel Martí
fd7f942595 Avoid NPE crash on devices without NFC. Fixes #379. 2015-08-18 13:14:13 -07:00
Daniel Martí
fa929a4cf4 Bump buildToolsVersion 2015-08-18 10:24:52 -07:00