mirror of
https://github.com/sotam0316/docker-py-revanced.git
synced 2026-04-25 03:48:37 +09:00
🎨 Package name as attribute
This commit is contained in:
@@ -17,6 +17,8 @@ class APP(object):
|
||||
"""Patched APK."""
|
||||
|
||||
def __init__(self, app_name: str, config: RevancedConfig):
|
||||
from src.patches import Patches
|
||||
|
||||
self.app_name = app_name
|
||||
self.app_version = config.env.str(f"{app_name}_VERSION".upper(), None)
|
||||
self.experiment = False
|
||||
@@ -48,6 +50,9 @@ class APP(object):
|
||||
self.download_dl = config.env.str(f"{app_name}_DL".upper(), "")
|
||||
self.download_patch_resources(config)
|
||||
self.download_source = config.env.str(f"{app_name}_DL_SOURCE".upper(), "")
|
||||
self.package_name = config.env.str(
|
||||
f"{app_name}_PACKAGE_NAME".upper(), Patches.get_package_name(app_name)
|
||||
)
|
||||
|
||||
def download_apk_for_patching(self, config: RevancedConfig) -> None:
|
||||
"""Download apk to be patched."""
|
||||
|
||||
Reference in New Issue
Block a user