chiark / gitweb /
scanner: support Gradle plugin 3.0 syntax for dependencies
authorrelan <email@hidden>
Thu, 8 Mar 2018 12:12:58 +0000 (15:12 +0300)
committerrelan <email@hidden>
Thu, 8 Mar 2018 12:23:15 +0000 (15:23 +0300)
See https://developer.android.com/studio/build/gradle-plugin-3-0-0-migration.html#new_configurations

fdroidserver/scanner.py

index 305529891b277a47002e7bca758a947bdce40d4b..272bebd224cbec354c63cc71060b17a05072395a 100644 (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]