mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 06:50:29 +03: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
1 changed files with 7 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue