diff --git a/fdroidserver/common.py b/fdroidserver/common.py index 229fd42f..a363ffb5 100644 --- a/fdroidserver/common.py +++ b/fdroidserver/common.py @@ -874,13 +874,22 @@ def retrieve_string(app_dir, string_id): return s.replace("\\'","'") return '' +# Find the AM.xml - try the new gradle method first. +def manifest_path(app_dir): + gradlepath = os.path.join(app_dir, 'source', 'main', 'AndroidManifest.xml') + if os.path.exists(gradlepath): + return gradlepath + rootpath = os.path.join(app_dir, 'AndroidManifest.xml') + return rootpath + + # Retrieve the package name def fetch_real_name(app_dir): app_search = re.compile(r'.*