mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-09-11 23:23:27 +02: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:
parent
95e016695c
commit
44d17663fd
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user