added test case

This commit is contained in:
tobiasKaminsky 2017-11-30 11:12:18 +01:00
parent f8492f05a8
commit 33aee96ed9
No known key found for this signature in database
GPG key ID: 0E00D4D47D0C5AF7
3 changed files with 47 additions and 1 deletions

View file

@ -1299,7 +1299,9 @@ def parse_androidmanifests(paths, app):
vercode = None
package = None
flavour = app.builds[-1].gradle[-1]
flavour = ""
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'):
# first try to get version name and code from correct flavour