1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-14 02:50:12 +01:00

scanner: support Gradle plugin 3.0 syntax for dependencies

See https://developer.android.com/studio/build/gradle-plugin-3-0-0-migration.html#new_configurations
This commit is contained in:
relan 2018-03-08 15:12:58 +03:00
parent 95e016695c
commit 44d17663fd

View File

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