1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-04 14:30:11 +01:00

🧴 force android package names for IPAs for now

This commit is contained in:
Michael Pöhn 2023-11-30 17:28:22 +01:00 committed by Hans-Christoph Steiner
parent ea9374ecf6
commit 3ee91d1777

View File

@ -102,7 +102,6 @@ STRICT_APPLICATION_ID_REGEX = re.compile(r'''(?:^[a-zA-Z]+(?:\d*[a-zA-Z_]*)*)(?:
VALID_APPLICATION_ID_REGEX = re.compile(r'''(?:^[a-z_]+(?:\d*[a-zA-Z_]*)*)(?:\.[a-z_]+(?:\d*[a-zA-Z_]*)*)*$''', VALID_APPLICATION_ID_REGEX = re.compile(r'''(?:^[a-z_]+(?:\d*[a-zA-Z_]*)*)(?:\.[a-z_]+(?:\d*[a-zA-Z_]*)*)*$''',
re.IGNORECASE) re.IGNORECASE)
ANDROID_PLUGIN_REGEX = re.compile(r'''\s*(:?apply plugin:|id)\(?\s*['"](android|com\.android\.application)['"]\s*\)?''') ANDROID_PLUGIN_REGEX = re.compile(r'''\s*(:?apply plugin:|id)\(?\s*['"](android|com\.android\.application)['"]\s*\)?''')
APPLE_BUNDLEIDENTIFIER_REGEX = re.compile(r'''^[a-zA-Z-.]*''')
SETTINGS_GRADLE_REGEX = re.compile(r'settings\.gradle(?:\.kts)?') SETTINGS_GRADLE_REGEX = re.compile(r'settings\.gradle(?:\.kts)?')
GRADLE_SUBPROJECT_REGEX = re.compile(r'''['"]:?([^'"]+)['"]''') GRADLE_SUBPROJECT_REGEX = re.compile(r'''['"]:?([^'"]+)['"]''')
@ -2016,7 +2015,6 @@ def is_valid_package_name(name):
""" """
return VALID_APPLICATION_ID_REGEX.match(name) is not None \ return VALID_APPLICATION_ID_REGEX.match(name) is not None \
or APPLE_BUNDLEIDENTIFIER_REGEX.match(name) is not None \
or FDROID_PACKAGE_NAME_REGEX.match(name) is not None or FDROID_PACKAGE_NAME_REGEX.match(name) is not None