809 Commits

Author SHA1 Message Date
Daniel Martí
cb9290fb89 Detect all VM policy penalties 2015-09-05 23:35:39 -04:00
Daniel Martí
8b7eba6698 StrictMode fix: close streams in local repo assets 2015-09-05 23:31:19 -04:00
Daniel Martí
bd1db5412b Add StrictMode to the entire app, fixes #399
Only enabled on debug builds. With only logs for now, we can move on to more
annoying penalties like dialogs or crashes once we have solved all of them.
2015-09-05 23:30:59 -04:00
Daniel Martí
232ed2229b Bump build-tools 2015-09-05 23:00:47 -04:00
Daniel Martí
6214b7f659 Merge branch 'issue-395' 2015-09-05 22:16:15 -04:00
Daniel Martí
45782355db Update zxing-core to 3.2.1 2015-09-05 22:14:18 -04:00
Peter Serwylo
3213fd2ba1 Merge branch 'new-swap' 2015-09-06 08:37:26 +10:00
Hans-Christoph Steiner
9cb8e0f5d5 Merge branch 'ci-rootproject' into 'master'
CI: use root project, test fix

See merge request !130
2015-09-04 12:37:12 +00:00
Daniel Martí
2fda08a33e Remove duplicated spaces from strings 2015-09-03 22:03:07 -07:00
Daniel Martí
10171d9228 Installer: handle package parse errors, fixes #395 2015-09-03 18:52:40 -07:00
Daniel Martí
74c93907c5 Don't call onAppChanged() if install was cancelled
It should have not changed anything about the app. It should make AppDetails
update anything as needed just like returning from any other activity.
2015-09-03 18:49:31 -07:00
Daniel Martí
16a0344ceb Update RepoXMLHandlerTest to make tests pass 2015-09-03 18:02:57 -07:00
Daniel Martí
c725b36ff8 Move RepoXMLHandlerTest into the proper directory
This was probably due to a faulty rebase/merge.
2015-09-03 18:02:57 -07:00
Daniel Martí
e72ccd3012 Bump to 0.97-alpha0 2015-09-02 17:54:55 -07:00
Daniel Martí
c43505befb Fix tests by making a method explicitly protected
This was making proguard complain and refuse to continue. This fix should not
alter how F-Droid works, it's just to make the tests function with proguard
enabled.
2015-09-02 16:10:06 -07:00
Daniel Martí
582eebd436 Run connectedAndroidTest against an emulator
Using 2.3.7 (10) armeabi for now. We can look into using more images in the
future.
2015-09-02 12:59:59 -07:00
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