Don't use the error-prone -x method to avoid lint usage

This commit is contained in:
Daniel Martí 2014-07-10 12:07:10 +02:00
parent 3d923a6718
commit d69f93e5b2

View file

@ -696,8 +696,9 @@ def build_local(app, thisbuild, vcs, build_dir, output_dir, srclib_dir, extlib_d
commands += ['assemble' + flavours_cmd + 'Release']
# Avoid having to use lintOptions.abortOnError false
if thisbuild['gradlepluginver'] >= LooseVersion('0.8'):
commands += ['-x', 'lintVital' + flavours_cmd + 'Release']
if thisbuild['gradlepluginver'] >= LooseVersion('0.7'):
with open(os.path.join(root_dir, 'build.gradle'), "a") as f:
f.write("\nandroid { lintOptions { checkReleaseBuilds false } }\n")
p = FDroidPopen(commands, cwd=root_dir)