237 Commits

Author SHA1 Message Date
Hans-Christoph Steiner
d917d6d007 version code 1002051 2018-04-18 20:21:23 +02:00
Hans-Christoph Steiner
2cba07b117 version code 1002050 2018-04-13 21:39:37 +02:00
Hans-Christoph Steiner
73ad5bd6b3 update to latest jmDNS for more reliable detection
closes #612
2018-04-13 00:20:54 +02:00
Hans-Christoph Steiner
6b4b85d396 entirely purge AndroidHttpClient from the code base.
closes #586
2018-04-13 00:20:54 +02:00
Hans-Christoph Steiner
00cfaa572f version code 1002001 2018-04-06 18:53:32 +02:00
Hans-Christoph Steiner
ce19d60e7b version code 1002000 2018-03-30 17:28:56 +02:00
Hans-Christoph Steiner
5e6ff06e0e bump to build-tools-25.0.3 2018-03-29 22:30:00 +02:00
Hans-Christoph Steiner
cd31976a58 update support libs to 25.3.1 2018-03-23 17:04:39 +01:00
Hans-Christoph Steiner
0260afcc99 bump org.robolectric to hopefully improve test reliability 2018-03-23 17:04:39 +01:00
Hans-Christoph Steiner
e3961a8c00 update spongycastle to latest version supporting pkix 2018-03-23 15:52:43 +01:00
Hans-Christoph Steiner
d0e8d2da01 update to latest zxing core
This might be needed for the newest releases of Barcode Scanner.
2018-03-23 15:32:25 +01:00
Hans-Christoph Steiner
57b2032e30 version code 1001050 2018-03-21 20:06:36 +01:00
Hans-Christoph Steiner
10db3bc057 version code 1001004 2018-03-08 00:09:09 +01:00
Hans-Christoph Steiner
f1d28d5768 versionCode 1001003 2018-02-13 22:05:56 +01:00
Hans-Christoph Steiner
96fb01ca52 Merge branch 'error-prone' into 'master'
Configure error prone

fdroidclient!635
2018-02-13 20:30:23 +01:00
Hans-Christoph Steiner
3c341b7e4b move errorprone config to its own gitlab CI job 2018-02-13 20:19:45 +01:00
Hans-Christoph Steiner
2daf741c4a versionCode 1001002 2018-02-06 00:17:43 +01:00
Andrew Gaul
d3cb775101 Configure error prone
Disable a few noisy warnings.
2018-01-30 09:03:29 -08:00
Hans-Christoph Steiner
34c17c7e74 versionCode 1001001 2018-01-26 22:58:48 +01:00
Torsten Grote
512789aafa
Basic PanicKit Support with one default action
The default action closes F-Droid and removes it from the list of recent
apps.

Destructive action will be added later.
2017-12-06 16:25:01 -02:00
Hans-Christoph Steiner
d4d9707631 on debug builds, set versionCode using DB_VERSION + commit count
This provides an automatic way to generate updates from each new debug
build, it is build from the developer's machine or via the nightly repo.
2017-11-23 10:55:13 +01:00
Hans-Christoph Steiner
427d0d0aa0 add 'debug' to applicationId and versionName for debug builds 2017-11-23 10:55:13 +01:00
Torsten Grote
4149cf7e8c
Remove dependence on "org.fdroid.fdroid" to make whitelabel clients easier 2017-11-22 13:21:06 -02:00
Hans-Christoph Steiner
bcc29ef6c9 versionCode 1001000 2017-11-09 23:59:25 +01:00
Hans-Christoph Steiner
5f26a78527 auto-disable preDexLibraries on CI systems
preDexing helps repeat builds run faster, but slows down builds that do
not have any caching.  CI builds start from scratch each time.  Turns
out that GitLab CI, Travis CI, Circle CI, and probably many others all
define the "CI" environment variable, so its easy to detect when running
in a CI environment.  This makes things a lot cleaner.

* https://docs.gitlab.com/ce/ci/variables/README.html
* https://docs.travis-ci.com/user/environment-variables/
* https://circleci.com/docs/2.0/env-vars/
* https://github.com/codepath/android_guides/wiki/Setting-up-Travis-CI
* https://stackoverflow.com/questions/23137764/building-a-debug-apk
2017-10-27 10:54:20 +02:00
Hans-Christoph Steiner
c3f46bb5fb versionCode 1000011 2017-10-24 14:09:08 +02:00
Hans-Christoph Steiner
245b918d6e versionCode 1000010 2017-10-10 14:46:16 +02:00
Hans-Christoph Steiner
fe626e3fd8 versionCode 1000005 2017-10-04 23:33:21 +02:00
Hans-Christoph Steiner
fa859466da versionCode 1000004 2017-09-27 23:03:11 +02:00
Hans-Christoph Steiner
e1743c70f6 versionCode 1000003 2017-09-12 22:38:43 +02:00
Hans-Christoph Steiner
5739706cdd Build to 1000002 2017-09-04 23:13:35 +02:00
Hans-Christoph Steiner
a27d2804f3 manually use aapt singleCrunch for reproducible builds
PNG crunching is not a deterministic process, especially the way aapt does
it.  This makes the F-Droid builds not reproducible.  The easy solution to
this is to pre-crunch the PNGs and commit them to git.  It also makes the
final APK a tiny amount smaller, for whatever reason.

https://medium.com/@duhroach/smaller-pngs-and-android-s-aapt-tool-4ce38a24019d
2017-09-04 22:20:55 +02:00
Hans-Christoph Steiner
c93cd5a3e6 Build to 1000001 2017-07-18 10:01:41 +02:00
Hans-Christoph Steiner
300677fb9c Bump to 1000000 2017-07-08 00:10:59 +02:00
Hans-Christoph Steiner
57664eb086 stop using 'v' prefix for release tags 2017-07-08 00:10:45 +02:00
Hans-Christoph Steiner
eabec87a4c Bump to 0.104 2017-06-16 23:20:28 +02:00
Hans-Christoph Steiner
9967ed9923 Bump to 0.103.2 2017-05-31 19:38:06 +02:00
Hans-Christoph Steiner
0fb65d2cfd Bump to 0.103.1 2017-05-13 00:10:20 +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
7135cdef48 Bump to 0.103 2017-05-02 22:03:08 +02:00
Hans-Christoph Steiner
471083b8f4 Bump to 0.103-alpha3 2017-04-19 00:19:10 +02:00
Peter Serwylo
131eece46c Fix issue with some cards not displaying in "Latest" view.
But in constraint layout which was fixed in 1.0.2.

Fixes #949.
2017-04-17 17:32:14 +10:00
Hans-Christoph Steiner
16880c638c Bump to 0.103-alpha2 2017-04-07 19:27:03 +02:00
Hans-Christoph Steiner
c43877eed1 demote lint ImpliedQuantity to warning
This is hitting a lot of plurals, causing the CI builds to fail.  But
unfortunately, its getting it wrong.  Its actually for a format in a string
like "Updated today" in languages like pt that need special cases for 0/1
items.  In this case, it makes no sense to say "Updated 0 days ago".
2017-04-07 19:09:19 +02:00
Peter Serwylo
432eee0f83 Force the build tools to generate .pngs for each vector.
This results in a slightly larger apk (e.g. 500KiB), but it reduces the
scope for bugs greatly. We still get all the benefits of only having to
maintain a single density-independent vector (rather than several
density dependent PNGs and all the work that involves).

The class of bugs that it solves is that there are several places where
vectors cannot be used, and you wont notice when developing on a device
newer than 5.0. For example, notification icons, `TextView`
and its `android:drawableStart` attribute.

Fixes #913.
2017-04-07 15:56:16 +10:00
Hans-Christoph Steiner
89e103fc23 Bump to 0.103-alpha1 2017-04-01 21:15:18 +02:00
Hans-Christoph Steiner
d769dcfc60 support new index-v1 format using Jackson parser
This adds support for parsing the new index-v1.json data as defined in
fdroidserver!221.  This new index metadata format is required to
support localization, graphics, screenshots, etc.

refs #15
2017-03-31 09:09:31 +11:00
Peter Serwylo
c59899cbff Ensure support lib 25.2.0
The default behaviour of gradle when encountering a transitive
dependency which is the same as an explicit dependency, but where the
transitive dependency has a higher version, is to bump the depdendency
which was explicitly added. This meant that the addition of the
bottom navigation library implicitly bumped our support lib to 25.3.0
due to its dependence on it.

The options are:
 * Change the 3rd party lib to support 25.2.0 instead of 25.3.0.
 * Explicitly exclude the transitive support lib dependency in our build
   script (what we have done in the past, e.g. with acra).
 * Bump our explicit dependency.

Given the nature of the changes from 25.2.0 and 25.3.0, it seemed like
it was simplest to bump our dep. However, there is a bug
https://code.google.com/p/android/issues/detail?id=251302 which causes
a function we depend on in SwitchCompat to require API 14. Therefore,
this change excludes the 25.3.0 transitive dependencies, allowing our
25.2.0 dep to get used.

In the process, I've noted that there were a few places we opted for
excluding the transitive dependency in the past. These have now been
removed because we have a higher version than they do, and thus they
will no longer drag our old version forward.
2017-03-22 09:47:12 +11:00
Peter Serwylo
c24ccae02c Use 3rd party bottom nav library which isn't based on support lib one.
The previous dependency extended the support library bottom nav. It did
this at the expense of lots of reflection. This is pretty brittle and
likely to break in future releases as the support lib gets updated. In
the mean time we need to have a fully working bottom nav, so this commit
includes a different dependency.

Most 3rd party bottom navigation panes look great. All that I found
require at least API 11, mostly API 14 (due to animations I suspect).
I've forked one of the most popular ones on GitHub and made it support
back down to API 10. My fork is added as a dependency until upstream
accepts the PR.

If they don't ever, then we can reconsider what our options are.

The two times I've swapped the bottom nav implementation have both been
trivial. The code generally only touches the MainActivity and its
layout.
2017-03-22 08:55:27 +11:00
Peter Serwylo
43a9a9d229 Add dependency to make bottom nav work better + bump support libs.
Right now, it will allow us to set the selected item more nicely.
In the near future, we will use this dependency to control the visual
display of the bottom nav better (e.g. icons/text appearance/animation).

Note that there is a bit of development going on at the Android team,
and the official bottom navigation view may oneday support all of these
features. In that case, we should probably switch back.
2017-03-22 08:55:27 +11:00