Merge 'fix-scanner' into 'master'

scanner: support Gradle plugin 3.0 syntax for dependencies

fdroid/fdroidserver!475
This commit is contained in:
Hans-Christoph Steiner 2018-03-08 13:56:14 +01:00
commit 4fcf69a9ef
1 changed files with 14 additions and 1 deletions

View File

@ -32,7 +32,20 @@ options = None
def get_gradle_compile_commands(build):
compileCommands = ['compile', 'releaseCompile']
compileCommands = ['compile',
'provided'
'apk'
'implementation'
'api'
'compileOnly'
'runtimeOnly',
'releaseCompile'
'releaseProvided'
'releaseApk'
'releaseImplementation'
'releaseApi'
'releaseCompileOnly'
'releaseRuntimeOnly']
if build.gradle and build.gradle != ['yes']:
compileCommands += [flavor + 'Compile' for flavor in build.gradle]
compileCommands += [flavor + 'ReleaseCompile' for flavor in build.gradle]