mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-16 16:02:33 +03:00
Support auto names on gradle projects
This commit is contained in:
parent
d570422f6d
commit
167d9df3a0
1 changed files with 8 additions and 4 deletions
|
@ -591,10 +591,14 @@ class vcs_bzr(vcs):
|
|||
|
||||
def retrieve_string(app_dir, string, xmlfiles=None):
|
||||
|
||||
res_dir = os.path.join(app_dir, 'res')
|
||||
res_dirs = [
|
||||
os.path.join(app_dir, 'res'),
|
||||
os.path.join(app_dir, 'src/main/res'),
|
||||
]
|
||||
|
||||
if xmlfiles is None:
|
||||
xmlfiles = []
|
||||
for res_dir in res_dirs:
|
||||
for r,d,f in os.walk(res_dir):
|
||||
if r.endswith('/values'):
|
||||
xmlfiles += [os.path.join(r,x) for x in f if x.endswith('.xml')]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue