mirror of
https://github.com/sotam0316/docker-py-revanced.git
synced 2026-04-25 03:48:37 +09:00
Extracted common methods (#281)
This commit is contained in:
@@ -58,6 +58,14 @@ class Patches(object):
|
||||
key: (value, "_" + value) for key, value in _revanced_app_ids.items()
|
||||
}
|
||||
|
||||
@staticmethod
|
||||
def get_package_name(app: str) -> str:
|
||||
"""Get Package name from app name."""
|
||||
for package, app_tuple in Patches.revanced_app_ids.items():
|
||||
if app_tuple[0] == app:
|
||||
return package
|
||||
raise AppNotFound("App Not Found.")
|
||||
|
||||
@staticmethod
|
||||
def support_app() -> Dict[str, str]:
|
||||
"""Return supported apps."""
|
||||
|
||||
Reference in New Issue
Block a user