🎨 Removed extra function

This commit is contained in:
Nikhil Badyal
2023-09-02 17:27:44 +05:30
committed by Nikhil Badyal
parent e2de08fee3
commit 626f73ccb8
+3 -10
View File
@@ -4,6 +4,8 @@ from typing import List, Self
from environs import Env from environs import Env
from src.utils import default_build
default_cli = "https://github.com/revanced/revanced-cli/releases/latest" default_cli = "https://github.com/revanced/revanced-cli/releases/latest"
default_patches = "https://github.com/revanced/revanced-patches/releases/latest" default_patches = "https://github.com/revanced/revanced-patches/releases/latest"
default_patches_json = default_patches default_patches_json = default_patches
@@ -31,13 +33,4 @@ class RevancedConfig(object):
self.extra_download_files: List[str] = env.list("EXTRA_FILES", []) self.extra_download_files: List[str] = env.list("EXTRA_FILES", [])
self.apk_editor = "apkeditor-output.jar" self.apk_editor = "apkeditor-output.jar"
self.extra_download_files.append("https://github.com/REAndroid/APKEditor@apkeditor.jar") self.extra_download_files.append("https://github.com/REAndroid/APKEditor@apkeditor.jar")
self._fetch_or_default(env) self.apps = env.list("PATCH_APPS", default_build)
def _fetch_or_default(self: Self, env: Env) -> None:
"""Get config from env or use default."""
from src.utils import default_build
self.apps = env.list(
"PATCH_APPS",
default_build,
)