Commit graph

505 commits

Author SHA1 Message Date
Hans-Christoph Steiner
f625005ec3 remove dependency on wget for 'build' and 'verify'
To make the core tools portable to platforms like Mac OS X and Windows,
remove the dependency on wget and instead use Python Requests, which
probably has better performance anyway.
2015-07-24 11:53:14 -07:00
أحمد المحمودي (Ahmed El-Mahmoudy)
44335b64be Add an option to disable repository refresh
This is useful for testing builds with no internet connection, and the
repositories were already fetched previously
2015-07-14 17:43:07 +02:00
Daniel Martí
439cabb7f3 Remove "Srclibs:" from srclib metadata files
They are handled per build, this feature is of little help and practically
unused in master.
2015-06-03 13:52:47 +02:00
Daniel Martí
e916e5df4e Add COMMIT, VERSION and VERCODE recipe vars. Fixes #69 2015-05-10 13:55:16 +02:00
Daniel Martí
3f9d6b2947 Don't try reading lines from directories 2015-04-17 13:05:12 +02:00
Daniel Martí
4888339a9d Also run main gradle clean task in case it's got dependencies 2015-04-10 00:14:52 +02:00
Daniel Martí
b416795166 Start supporting gradle tasks that belong to subprojects 2015-04-10 00:14:25 +02:00
Daniel Martí
acd49c6e4d When patching or checking plugin versions, use *.gradle
Apparently all *.gradle files are valid, e.g. global.gradle.
2015-04-06 17:42:26 +02:00
Daniel Martí
85b48a5c25 Fix buildTools versions that reference variables 2015-03-31 23:08:32 +02:00
Daniel Martí
edd3a787aa Also set ANDROID_NDK_HOME since gradle may need it 2015-03-05 15:25:09 +01:00
Ciaran Gultnieks
d1c03fbdbf Retrieve Binaries at build time 2015-01-31 15:36:26 +00:00
Ciaran Gultnieks
fe7f6cfe50 Remove shell option from FDroidPopen 2015-01-26 18:30:01 +00:00
Daniel Martí
2edddda234 scanner: adapt to new scan_source format (fixes #59) 2015-01-10 13:49:54 +01:00
Daniel Martí
6819e3c30e Set up the ndk in $PATH before each build 2015-01-06 19:41:55 +01:00
Daniel Martí
9b200f47d8 Don't allow --skip-scan if scandelete is set up 2015-01-06 14:40:31 +01:00
Rancor
8a09ebc446 Removed second parameter in replace_config_vars call 2015-01-06 12:37:34 +01:00
Daniel Martí
cd7ae381a5 Properly capitalize all flavours (fixes org.ligi.fast) 2015-01-05 13:07:22 +01:00
Daniel Martí
371e64dfc2 Fix build passing madness (closes #55) 2015-01-05 00:29:27 +01:00
Daniel Martí
3645471a1c Never let build['ndk_path'] be None 2015-01-04 20:41:22 +01:00
Daniel Martí
d5af8ec8e6 Don't crash if no suitable NDK is found 2015-01-04 01:45:52 +01:00
Daniel Martí
f60f1bc59e Add NDK r10d, this time alongside r9b
Specified per-build with ndk=<version> defaulting to the oldest, r9b.
2015-01-03 00:07:01 +01:00
Daniel Martí
43092407a3 Don't run a global "gradle clean" which configures all projects
Also properly capitalize words for gradle tasks
2015-01-02 22:26:22 +01:00
Daniel Martí
14f654fabc Apply some autopep8-python2 suggestions 2014-12-31 16:44:06 +01:00
Daniel Martí
e39602586f Make dump xmltree and dump badging silent again 2014-12-31 16:34:11 +01:00
Hans-Christoph Steiner
9244256461 find cmds from SDK build-tools in a more flexible way, on the fly
This is a more flexible approach than testing for the complete SDK and
build-tools up front.  This will only test for the commands that are
actually being run, so that if you only have `aapt` installed, you can do
`fdroid update` without errors, but other commands will still give
appropriate errors.

This also makes the build_tools item in config.py optional, it is only
needed if you want to force a specific version of the build-tools.
2014-12-14 13:25:20 +01:00
Ciaran Gultnieks
3f63435318 Move build/fdroidserver info to META-INF 2014-10-24 22:20:42 +01:00
Daniel Martí
9c4a529f5b Fix gradle builds without flavours 2014-09-16 08:38:18 +02:00
Daniel Martí
1757017b8a More list comprehension fixes 2014-09-13 13:07:21 +02:00
Daniel Martí
34a3405208 Centralise handling of default gradle flavours 2014-09-13 13:04:24 +02:00
Daniel Martí
a195556378 Make gradle and antcommands (previously antcommand) proper lists 2014-09-13 13:01:08 +02:00
Daniel Martí
cb63a5a62b Properly obey build --force. Fixes #29. 2014-08-26 13:49:42 +02:00
Daniel Martí
c5cab888e4 Revert some stuff from 94c29f9c37 that shouldn't have been commited 2014-08-18 11:25:39 +02:00
Daniel Martí
94c29f9c37 Map apps in memory from appid to appinfo
Instead of storing them in a list and doing linear searches by appinfo['id']
2014-08-16 12:46:02 +02:00
Daniel Martí
1af98e9f09 Try to fix apk path matching with newer maven plugin versions 2014-08-12 12:56:59 +02:00
Ciaran Gultnieks
f5890646e6 Put lastbuild log on wiki by vercode (with redirect) 2014-07-17 14:05:16 +01:00
Daniel Martí
d69f93e5b2 Don't use the error-prone -x method to avoid lint usage 2014-07-10 12:07:10 +02:00
Daniel Martí
d5b06ec008 Revert "If given --verbose, don't print the whole error log again"
This reverts commit 29ab3cf64d.
2014-07-09 11:14:01 +02:00
Daniel Martí
7b8948f932 Simplify the finding of gradle output apks 2014-07-09 11:08:11 +02:00
Daniel Martí
ff06694adc Don't use generic Exception raises
That hides bugs, since all exceptions (including bugs that cause raises that
weren't our doing) fall under the "Exception" except
2014-07-07 15:41:50 +02:00
Daniel Martí
353e8dda00 More log level fixes 2014-07-05 15:29:12 +02:00
Daniel Martí
d8cd9a3163 Move more logging.info stuff to debug 2014-07-05 15:25:39 +02:00
Daniel Martí
faa35fb7c4 Avoid lint on all new plugin versions, remove TODO 2014-07-04 08:59:30 +02:00
Daniel Martí
8595e216f4 Add support for gradle plugin version 0.12 2014-07-04 08:50:20 +02:00
Daniel Martí
d110c24eff Find aapt as part of the main config initialisation 2014-07-03 00:31:07 +02:00
Daniel Martí
d132adf63c Exception handling improvements
* Replace some prints with proper logging messages
* Make VCSException as verbose as BuildException, including error output
2014-07-02 15:44:46 +02:00
Daniel Martí
76ac2f591c Remove @dir support from gradle 2014-07-01 19:39:41 +02:00
Daniel Martí
8888962ace Rename PopenResult.stdout to output since it also contains stderr 2014-07-01 18:04:41 +02:00
Daniel Martí
22f4ed4b7a Fix very silly typo that broke all apps using buildjni 2014-07-01 17:51:17 +02:00
Daniel Martí
fdb53b75f4 Report the vercode as well as the version name when building 2014-06-30 16:34:26 +02:00
Daniel Martí
49208b257d Always run read_srclibs as part of read_metadata 2014-06-30 14:39:52 +02:00