support kotlin "*.gradle.kts" files in more places

closes #613
This commit is contained in:
Hans-Christoph Steiner 2020-02-13 09:54:55 +01:00
parent 9ae41cc1ff
commit 68b793e308
3 changed files with 5 additions and 4 deletions

View file

@ -1421,7 +1421,7 @@ def parse_androidmanifests(paths, app):
if app.builds and 'gradle' in app.builds[-1] and app.builds[-1].gradle:
flavour = app.builds[-1].gradle[-1]
if has_extension(path, 'gradle'):
if path.endswith('.gradle') or path.endswith('.gradle.kts'):
with open(path, 'r') as f:
android_plugin_file = False
inside_flavour_group = 0