3112 Commits

Author SHA1 Message Date
Daniel Martí
d7827a3f07 CHANGELOG: prepare for upcoming release 2016-02-27 13:01:56 +00:00
Daniel Martí
4ec9cee143 Merge branch 'smooth-tor' into 'master'
Smooth Tor setup

This is a big reworking of the Tor support to make it really easy to setup, and to make .onion addresses work automatically even when "Use Tor" is off.

I needed to make the NetCipher v1.2.1 release to support this, hence it was originally WIP:.

See merge request !216
2016-02-27 12:42:20 +00:00
Hans-Christoph Steiner
fd03ebd764 annotate swap methods that require android-10
swap only works on >= android-10 anyway

closes #581 https://gitlab.com/fdroid/fdroidclient/issues/581
2016-02-27 11:05:16 +01:00
Hans-Christoph Steiner
26b35723d3 use AsyncTask for SwapType operations to run in background
Thread runs at normal priority by default.  AsyncTasks are integrated into
Android for handling things running in the background while keeping the UI
responsive.

This reverts most of commit 828cc272ee5235f868104b009349cc7e835e144f.
2016-02-27 11:05:16 +01:00
Hans-Christoph Steiner
96fe1f9584 do not show "Swap" as an option on less than android-10
Swap requires lots of APIs that are only all available in android-10, so
hide the menu item on older platforms.

closes #581 https://gitlab.com/fdroid/fdroidclient/issues/581
closes #575 https://gitlab.com/fdroid/fdroidclient/issues/575
2016-02-27 11:04:08 +01:00
Hans-Christoph Steiner
38e4b38602 Re-enable NetCipher to provide decent TLS on all Android versions
Revert "Revert netcipher to fix SNI regression"
This reverts commit 6c8e726aadbe6714d6295882c5be87a7bf81a9f0.

NetCipher is important for making sure that the client running on older
versions of Android is not using extremely crappy default TLS settings.  It
also streamlines the Tor support.

closes #431 https://gitlab.com/fdroid/fdroidclient/issues/431
closes #576 https://gitlab.com/fdroid/fdroidclient/issues/576
2016-02-27 11:04:08 +01:00
Hans-Christoph Steiner
eed0070d4b do not bail out of wifi settings if there is no DhcpInfo
There is still much useful information to be had without DhcpInfo.
2016-02-27 11:04:08 +01:00
Hans-Christoph Steiner
c5688dcdbf Merge branch 'cleanup-swap-stuff' into 'master'
Cleanup swap stuff, make more robust

While we're discussing the merits or otherwise of !208, here is some fixes to the swap workflow cherry-picked (and cleaned up) from that branch.

Although not directly reproducible, I'm confident this should fix #556 and #557.

The original assumption was that we can start the wifi local repo server, then tell the user it is connected while JmDNS is starting. The plan was for it to be very snappy, so the user could continue using the UI while bonjour was doing its stuff. However, in realtity this results in the possibility of turning swap on and off again while bonjour is still getting ready.

This now makes the user wait both when starting swap, and also when stopping swap. It will provide proper feedback to the user, do it on a background thread (properly) and update the UI when done.

Added some other misc cleanups while there.

See merge request !213
2016-02-27 09:59:52 +00:00
Peter Serwylo
db120133b9 Don't try to start bonjour without an IP.
Although not reproduced, it looks very much like this would be related
to, and should subsequently fix #556.
2016-02-27 09:28:17 +11:00
Peter Serwylo
3dd0589b08 Don't say wifi is connected until both wifi + bonjour are ready.
Although I can't reproduce reliably, I am hopeful that this will resolve
a lot of the errors such as #557.
2016-02-27 09:28:17 +11:00
Peter Serwylo
cd3a064a5a Don't call unregisterService(...) then unregisterAllSerivces().
The later will unregister the service we were explicitly unregistering anyway.
2016-02-27 09:28:17 +11:00
Peter Serwylo
1505d21781 Set connected status after disconnecting from wifi swap. 2016-02-27 09:28:17 +11:00
Peter Serwylo
2ed6110ae5 Cleanup looper after shutting down. 2016-02-27 09:28:17 +11:00
Peter Serwylo
18f97602e8 Don't start swap wifi when there is no network.
Not sure if we should be here or not in this situation, so this is
a little bit defensive. Can't bind to an IP address of `null`, so
don't bother starting LocalHTTP server unless we have an IP.
2016-02-27 09:28:17 +11:00
Peter Serwylo
ddbd9e2ea9 Actually run thread in background.
`Thread.run()` is not the correct call, changed to the correct `Thread.start()`.
Also, explicitly indicate that we want the stopping of wifi to happen in the
background.
2016-02-27 09:28:17 +11:00
Peter Serwylo
1eae135929 Add user feedback for when WiFi is being disabled.
On some devices this can take some time (i.e. a second) and the UI needs
to be disabled for that time. This should stop users quickly stopping and
starting regularly, queuing up many "start jmdns, stop jmdns, start jmdns"
calls.
2016-02-27 09:28:17 +11:00
Peter Serwylo
8364aa15f1 Don't try to start swap again if we have gone from network -> no network. 2016-02-27 09:27:57 +11:00
Hans-Christoph Steiner
94e3cf85ba Merge branch 'lint-errors-2' into 'master'
Lint errors round 2

There are only a few errors left, which I've either logged as issues or reported upstream:

* #580
* #581
* #582
* https://github.com/rtyley/spongycastle/issues/7#issuecomment-189299020

I've also done a bunch of warnings that were just too easy to leave alone.

See merge request !215
2016-02-26 21:15:56 +00:00
Daniel Martí
b08b97466f Fix a single rogue ellipsis 2016-02-26 15:00:50 +00:00
Daniel Martí
91c3278920 Take RTL suggestions from lint (warnings) 2016-02-26 14:57:42 +00:00
Daniel Martí
e390561c7c install_confirm: remove useless lines
These are already in its layout-v11 version. And as lint points out,
these need v11:

	?android:attr/buttonBarStyle requires API level 11 (current min is 8)
	?android:attr/buttonBarButtonStyle requires API level 11 (current min is 8)
2016-02-26 14:48:45 +00:00
Daniel Martí
1b6fc3da7c Move app_permission_item_money to layout-v17
Since it's only ever used on android-17 or later, move it there to keep
lint happy with all the NewApi errors.
2016-02-26 14:47:09 +00:00
Daniel Martí
5179e032db Fix NewApi bug introduced in 8e193cec 2016-02-26 14:39:02 +00:00
Daniel Martí
43a3c2b042 Remove useless app:backgroundTint from layouts
app:backgroundTint only works on AppCompatButton from v7-appcompat.
We're using a regular Button in these, so this attribute is useless and
makes lint error.

More info:

	https://stackoverflow.com/questions/27735890/lollipops-backgroundtint-has-no-effect-on-a-button
2016-02-26 14:26:05 +00:00
Hans-Christoph Steiner
d1b758147b Merge branch 'lint-errors' into 'master'
Fix first chunk of lint errors

These are easy, but numerous.

See merge request !212
2016-02-25 19:34:08 +00:00
Daniel Martí
cdecc1604c Add all missing Left/Right attributes in RTL
This improves support on older Android releases.
2016-02-25 16:56:23 +00:00
Daniel Martí
073052f5cc Move app_description to donottranslate.xml
As lint points out, only the original string is used in the
AndroidManifest.xml. So having it translated is useless.
2016-02-25 16:40:58 +00:00
Hans-Christoph Steiner
153a6bdbe7 Merge branch 'tools' into 'master'
Pull translation updates and make CI check more stuff via tools/



See merge request !210
2016-02-25 16:31:29 +00:00
Daniel Martí
99f930663d CI: Also check language list and string formats 2016-02-25 14:25:45 +00:00
Daniel Martí
54c4714b9d Fix string format issues 2016-02-25 13:56:06 +00:00
Daniel Martí
6b9d6b6be5 Add a py script to check for bad string formats
Lint finds these, but it's very slow and currently we're not taking lint
errors as fatal. So for now this script will be useful, as nearly every
time I pull from weblate there are at least a couple of these.
2016-02-25 13:56:01 +00:00
Daniel Martí
d130a2f634 Merge branch 'ci-patches' into 'master'
Small CI patches



See merge request !209
2016-02-25 13:51:50 +00:00
Daniel Martí
7e86dc5e48 Convert existing py tools to python3 2016-02-25 13:39:39 +00:00
F-Droid Translatebot
d79fccb2da Pull translation updates from Weblate
Translators:

agilob                 Polish
Hsiu-Ming Chang        Chinese (Taiwan)
Nathan Follens         Dutch
Perry Verheij          Dutch
Robin van der Vliet    Dutch
Robin van der Vliet    Esperanto
Verdulo                Esperanto
Wathiq Qajar           Arabic
2016-02-25 12:38:43 +00:00
Daniel Martí
86ecfa217f CI: Simplify sdk unboxing 2016-02-24 20:31:30 +00:00
Daniel Martí
1153a93425 CI: Remove kill line
Hans correctly pointed out all this does is try to kill the echo. The
AVD should be taken down along with the docker runner.
2016-02-24 20:27:20 +00:00
Daniel Martí
5cca8102d7 Update commons-io test dep to 2.4
Ran the tests locally, all still pass.
2016-02-22 18:47:25 +01:00
Daniel Martí
9fe6545654 Update ACRA to 4.8.2 2016-02-22 18:45:21 +01:00
Peter Serwylo
1bae2b0132 Merge branch 'checkstyle-more' into 'master'
Checkstyle: require braces, consistent constant names



See merge request !207
2016-02-21 01:40:03 +00:00
Daniel Martí
17c731ef1d checkstyle: obey ConstantName 2016-02-17 15:59:04 +00:00
Daniel Martí
a6b804e93a checkstyle: obey NeedBraces on multi-line stmts
We still allow them in single-line statements, like:

	if (foo) bar;
	for (int i : ints) bar;

Everything else should use braces to help readability and avoid silly
human mistakes that might result in bugs.

These changes were completely automated via a python script.
2016-02-17 12:04:36 +00:00
Daniel Martí
ea31ed3079 gradlew: add zip sha256 2016-02-16 20:27:50 +00:00
F-Droid Translatebot
6d6aa98c6b Pull translation updates from Weblate
Translators:

Hsiu-Ming Chang    Chinese (Taiwan)
Verdulo            Esperanto
2016-02-16 11:58:04 +00:00
Peter Serwylo
e892d55b91 Merge branch 'search-clear-focus' into 'master'
Search: clear focus when enter/return is pressed

Fixes #572.

Assigning to @pserwylo since he wrote the current search widget stuff.

See merge request !206
2016-02-16 11:06:21 +00:00
Daniel Martí
e066ed04dc Search: clear focus when enter/return is pressed
Fixes #572.
2016-02-15 16:47:25 +00:00
Daniel Martí
5e619a8117 README: Point to gradlew 2016-02-15 16:35:39 +00:00
Daniel Martí
ddda82509c Bump gradle to 2.11 2016-02-15 16:34:41 +00:00
Daniel Martí
7471fed31c CI: Use gradlew 2016-02-15 16:34:41 +00:00
Daniel Martí
714edfb456 Add gradle wrapper 2016-02-15 16:30:40 +00:00
Daniel Martí
247dfc5ecf Run remove-unused-trans.py 2016-02-14 15:15:15 +00:00