1528 Commits

Author SHA1 Message Date
Daniel Martí
fdb710dfd1 Merge branch 'master' into 'master'
do not run proguard in `ant debug` builds, it breaks the tests

The whole Android ant build system was built around the assumption that proguard is only run on the release builds.  Running proguard on the debug builds breaks the test instrumentation, which does something like insert the emma methods into each class.  In theory, this could be fixed, but I think its a bad idea to heavily customize the ant build system since its basically deprecated in favor of gradle.

Here's the proguard warning message:
`[proguard] Warning: can't find referenced class com.vladium.emma.rt.RT`

Instead, there is probably a way to test the release build. For example, in the Jenkins build, I added `ant clean release`, then it installs the APK, and runs the "monkey tester" on it.

See merge request !36
2014-09-23 08:00:53 +00:00
Peter Serwylo
e4401ed22c Don't show progress for every app being processed from index.xml.
Rather, only show 25 progress events. I went with "25 events" rather
than "every X apps" because then it will be nice for both large repos
(e.g. F-Droid will update every ~50 apps) and small repos (something
with 20 apps will update for every one, but not add much overhead).

On my testing with an API 11 emulator here, it went from ~32s to
process ~1100 apps to ~20s. When no progress events are sent, then it
also takes ~20s, so this essentially is a 50% improvement for this part
of the update process.
2014-09-18 14:01:20 +10:00
Hans-Christoph Steiner
c330362cf0 do not run proguard in ant debug builds, it breaks the tests
The whole ant build system was built around the assumption that proguard is
only run on the release builds.  Running proguard on the debug builds
breaks the test instrumentation, which does something like insert the emma
methods into each class.  In theory, this could be fixed, but I think its a
bad idea to heavily customize the ant build system since its basically
deprecated in favor of gradle.

Here's the proguard warning message:
 [proguard] Warning: can't find referenced class com.vladium.emma.rt.RT
2014-09-16 18:58:01 -04:00
Daniel Martí
481cd91646 Fix installer warning logs logic 2014-09-15 10:59:54 +02:00
Daniel Martí
4f06d0081e Prepare for 0.74 0.74 2014-09-11 23:23:31 +02:00
Peter Serwylo
69fd955360 Merge branch 'master' into 'master'
Save updated repo data at the end of the update

This fixes #84.

See merge request !34
2014-09-11 03:51:24 +00:00
Ron Rieve
692a25abcb Save new repo data at end of update
Saves the new data for the repo at the end of the update process to enable the user to re-trigger the update in case the update exited prematurely.
Fixes #84.
2014-09-11 05:27:06 +02:00
Peter Serwylo
c7145a63cb Prevent android.support.v7.SearchView from being excluded by proguard.
There is a bug where the android.support.widget.SearchView gets
removed by proguard which causes breakage. This prevents that
from occuring by a bit of a brute force approach. While it would
be possible to keep only the class in question, this may leave
us open to other bugs in the future. Better to be safe than sorry.

http://stackoverflow.com/questions/22136032/action-bar-search-view-android-null-error
2014-09-11 10:55:24 +09:30
Hans-Christoph Steiner
008752ae74 fix stupid crasher bug introduced in 4f7f87be0a0487aad19c78a2a44faa1c2f008361 2014-09-10 18:02:46 -04:00
Daniel Martí
6b12a006fb Prepare 0.73
0.72 had proguard issues and 0.71 had HTTPS issues.
0.73
2014-09-08 23:09:51 +02:00
Daniel Martí
ea6482b94b Merge branch 'master' of https://gitlab.com/rrieve/fdroidclient 2014-09-08 08:44:29 +02:00
Daniel Martí
59f21c8561 Fix gradle build by bumping plugin version
Also add tools:replace since it's now needed as part of the manifest merger
2014-09-08 08:39:07 +02:00
Daniel Martí
9959becc09 Run proguard on debug builds to avoid future debug vs release issues 2014-09-08 08:25:47 +02:00
Ron Rieve
04f7b4a5a9 Toast if there are no updates
When the user updates the repo and all packages are recent, the update dialog exited so fast, that some users might have thought that the repo didn't update. To notify them that no new updates were found, the user now gets a toast.
2014-09-08 00:43:52 +02:00
Daniel Martí
36ee32d82c Remove all string-array translations missing items 2014-09-07 20:41:11 +02:00
Daniel Martí
db21ad2d3c Merge branch 'master' of https://gitlab.com/rrieve/fdroidclient 2014-09-07 19:00:35 +02:00
Ron Rieve
3a3a480429 Ask proguard to keep SystemInstaller observers
Proguard removed the method org.fdroid.fdroid.installer.SystemInstaller$PackageInstallObserver$packageInstalled,
resulting in an AbstractMethodError crash.
Fixes issue [79](https://gitlab.com/fdroid/fdroidclient/issues/79).
2014-09-07 18:49:03 +02:00
Daniel Martí
71e11027d0 Merge branch 'feature/proguard-keep-spongycastle' of https://gitlab.com/pserwylo/fdroidclient 2014-09-07 17:25:07 +02:00
Peter Serwylo
785dd036d1 Include all spongycastle classes when running proguard.
This increases the size of the .apk by ~800kb, which is clearly
undesirable. However, the nature of the Java security suite
implementations are that they use a lot of reflection to instantiate
classes. The end result is that proguard excludes classes which
may be required, depending on the security algorithms required
by certain certificates.

Fixes issue #88
2014-09-08 00:36:02 +09:30
Daniel Martí
cd0617d0f6 Release 0.72 0.72 2014-09-05 21:24:17 +02:00
Daniel Martí
f60f2c160a Run fix-ellipsis.sh 2014-09-05 21:20:20 +02:00
Daniel Martí
78ed3cee96 Fix values dir name 2014-09-05 21:19:54 +02:00
F-Droid Translatebot
9384466c29 Translation updates 2014-09-05 19:31:27 +01:00
Daniel Martí
c2350cbb73 Prepare changelog for 0.72 2014-09-05 16:35:12 +02:00
Peter Serwylo
d8653d8345 Merge branch 'master' into 'master'
revert to plain CA-based HTTPS verification

This is to address #80 so we can get a stable release out.  Then we should revisit #80 and actually get the pinning and TOFU working properly.

See merge request !30
2014-09-05 11:59:14 +00:00
Hans-Christoph Steiner
0429b3f7dd remove HTTPS pinning and TOFU until the bugs get worked out
This reverts to only using standard HTTPS verification based on Certificate
Authorities.  This means that self-signed certificates will not work at all
since that is what MemorizingTrustManager was providing.  It seems to me
that this was originally working because MemorizingTrustManager was not
correctly validating.  I couldn't figure out why PinningTrustManager alone
was not working. But we need to get good stable release out!

I'm leaving all the plumbing in place because this stuff should be included
once its all fixed and working properly.  You can see where it was added
here: 254327f9a7700c8196e61f53801f1f12ac825806

refs #80 https://gitlab.com/fdroid/fdroidclient/issues/80
2014-09-05 00:00:37 -04:00
Peter Serwylo
c9b08ffdd7 Prevent crash when changing categories. Fixes #72.
The problem arose when we start with no categories other than the
three defaults, then add a repo with multiple categories. The exact
issue was that although the category spinner itself was updated,
the listener for onChange was referencing the list of categories
from before (with only three categories). Changed it to use data
from the category spinner adapter, that way it is always up to
date.

Also fixed some warnings in the file. Instance access of a static
object, and deprecated method warning.
2014-09-05 06:59:19 +09:30
Hans-Christoph Steiner
2b03fb49be Merge branch 'master' into 'master'
Fix issue #56 -- update.zip

Creates a script create a update.zip file that installs F-Droid to `/system/app` or `/system/priv-app` depending on the android version. Also creates a remove.zip to remove F-Droid. Generates a zip file for every apk in the bin directory, to work with both signed and unsigned apks. Fixes issue #56.

See merge request !29
2014-09-03 16:52:17 +00:00
Ron Rieve
3e5f3d45a6 Create zips to install and remove F-Droid as system app
Adds a script zip-build.sh which creates CWM-flashable zips to install/update and remove F-Droid as system/privileged app.
2014-09-03 01:47:32 +02:00
Ciaran Gultnieks
77419183ec Declarative dependencies for proxy settings too 2014-08-28 17:46:23 +01:00
Ciaran Gultnieks
b4d8ee08dc Specify preferences dependencies declaratively 2014-08-28 17:39:34 +01:00
Ciaran Gultnieks
9cfa079e46 Restrict root/superuser install options to Experts
These two options are only enabled when Expert Mode is switched on.
They're far too incomplete and risky currently, unless you know what
you're doing.
2014-08-28 12:36:53 +01:00
Ciaran Gultnieks
3fc53c21d2 Add new f-droid.org cert pin 2014-08-28 12:36:49 +01:00
Ciaran Gultnieks
7f9a03822c Revert "Add new f-droid.org cert pin"
This reverts commit 0d7e7e4009abdb421c3e605065c178d5a31e860b.
2014-08-28 12:35:24 +01:00
Ciaran Gultnieks
0d7e7e4009 Add new f-droid.org cert pin 2014-08-28 12:08:09 +01:00
Peter Serwylo
87c3cd456e Merge branch 'fix/progress-indicator-and-root-installer' into 'master'
Fix issues #74 and #75

The indeterminent progress indicator in the `AppDetails` view is now hidden by default on Android 4.0.3 (which is the only reproducing device I had access to). Had to replace a bunch of calls with those provided by appcompat.

As for the "(De-)Installation Error" message when using the root installer, it was due to the timeout being set to 5 seconds for the superuser shell. Note that just accepting the super user prompt takes a minimum of 3 seconds, plus the install time. I changed the timeout to 30 seconds, for reasons explained in the commit.

NOTE: @mvdan, I noted that you mentioned you were not interested in client development any more, so I'm not quite sure if it is worthwhile me submitting this as a MR (FYI - thanks for all the help on the client, also happy that your able to spend more time on build recipies and fdroidserver stuff. Great to see all that moving along). Perhaps @CiaranG, if you had the time to review it you could give it the thumbs up or down? Otherwise, I'll merge it myself.

See merge request !27
2014-08-20 11:52:45 +00:00
Peter Serwylo
82fed66a8a Increase root installer timeout from 5 to 30s. Fixes Issue #74.
The superuser shell has a timeout that can be specified. The timeout
was set to 5 seconds, thus the exit code from the shell is -1 (a
reserved exit code used by libsuperuse to indicate timeout).

By my estimate, it is more likely that a user will hit this error
message and get annoyed, compared to actually hitting a genuine timeout
because of some issue with superuser. Especially when we factor in slow
devices and large apps to install. Thus, the timeout has been bumped
to a more generous 30 seconds.
2014-08-19 08:12:47 +09:30
Peter Serwylo
3a3ea52077 Default AppDetails progress indicator to hidden. Fixes issue #75.
Replaced progress indicator methods with their "support" equivalents.

Also, it seems that on Android 4.0.4 and 4.0.3 if you request a
progress indicator in your ActionBarActivity (from the support
library), that it is set to visible to begin with. At least, that is
the conclusion I have come to, seeing as the only places it is set to
visible is on installApk() and removeApk(). Setting it to hidden in
onCreate seemed to do the trick (Couldn't use onResume, because we come
back from the "Request super user permissions" dialog, which causes
onResume to be invoked).
2014-08-19 08:08:46 +09:30
Daniel Martí
08c089b25c Remove leftover files 2014-08-13 13:25:46 +02:00
Daniel Martí
5ea37b0d12 FDroid -> F-Droid in the changelog 2014-08-13 13:22:30 +02:00
Daniel Martí
2b0b220e4d Add a couple of missing changelog items for 0.71 2014-08-06 19:59:03 +02:00
Daniel Martí
4cddb8d6ea Mark the changelog for 0.71 2014-08-06 17:25:04 +02:00
Daniel Martí
916afe1627 Bump to 0.71 0.71 2014-08-05 23:57:37 +02:00
Daniel Martí
6b7df1e46e Run fix-ellipsis 2014-08-05 23:45:31 +02:00
F-Droid Translatebot
0c1420ab2e Translation updates 2014-08-05 22:43:01 +01:00
Daniel Martí
62056648ee Update spongycastle 2014-08-05 15:09:55 +02:00
Daniel Martí
5cd6285ce0 Update MTM and UIL 2014-08-05 13:30:31 +02:00
Daniel Martí
2f7ee04032 Make it possible to fetch the current theme directly 2014-08-05 12:53:28 +02:00
Daniel Martí
05e99c666d Merge branch 'master' of https://gitlab.com/eighthave/fdroidclient 2014-08-05 12:36:38 +02:00
Hans-Christoph Steiner
7b5e831b66 darken category menu button on the dark theme to match the theme
This commit uses alpha to make the category menu button appear darker to
match the rest of the dark theme.  Since the background is black, the alpha
makes it darker.  It is only used on the dark theme since alpha would
lighten the menu button on the light themes, and that would make it a worse
match.
2014-08-04 18:53:48 -04:00