makepanda: Ignore system imports when scanning .java files

This commit is contained in:
rdb 2022-03-12 16:55:37 +01:00
parent 5c03cd59fb
commit bb68abdd59

View File

@ -877,8 +877,11 @@ def JavaGetImports(path):
imports = []
try:
for match in JavaImportRegex.finditer(source, 0):
impname = match.group(1)
imports.append(impname.strip())
impname = match.group(1).strip()
if not impname.startswith('java.') and \
not impname.startswith('dalvik.') and \
not impname.startswith('android.'):
imports.append(impname.strip())
except:
print("Failed to determine dependencies of \"" + path +"\".")
raise