if 'gradle' in app['builds'][-1]:
flavour = app['builds'][-1]['gradle']
+ logging.debug("...fetch auto name from " + app_dir +
+ ((" (flavour:" + flavour) if flavour else ""))
new_name = common.fetch_real_name(app_dir, flavour)
+ logging.debug("...got autoname '" + new_name + "'")
if new_name != app['Auto Name']:
app['Auto Name'] = new_name
if not commitmsg:
for f in manifest_paths(app_dir, flavour):
if not has_extension(f, 'xml'):
continue
+ logging.debug("fetch_real_name: Checking manifest at " + f)
for line in file(f):
if not app_found:
if app_search(line):
if app_found:
matches = name_search(line)
if matches:
- return retrieve_string(app_dir, matches.group(1)).strip()
+ stringname = matches.group(1)
+ logging.debug("fetch_real_name: using string " + stringname)
+ return retrieve_string(app_dir, stringname).strip()
return ''
# Retrieve the version name