Build Og and Custom Icon

This commit is contained in:
Nikhil Badyal
2022-10-14 19:46:51 +05:30
parent e162068b30
commit a07d852ec4
4 changed files with 38 additions and 0 deletions
+1
View File
@@ -56,3 +56,4 @@ class RevancedConfig:
"youtube": f"{self.apk_mirror_urls.get('youtube')}youtube",
"youtube_music": f"{self.apk_mirror_urls.get('youtube_music')}youtube-music",
}
self.build_og_nd_branding_youtube = env.bool("BUILD_OG_BRANDING_YOUTUBE", False)
+18
View File
@@ -41,6 +41,24 @@ class Parser(object):
"""
return self._EXCLUDED
def get_all_patches(self) -> List[str]:
"""
Getter to get all excluded patches
:return: List of excluded patches
"""
return self._PATCHES
def invert_patch(self, name: str) -> None:
"""
Getter to get all excluded patches
:return: List of excluded patches
"""
patch_index = self._PATCHES.index(name)
if self._PATCHES[patch_index - 1] == "e":
self._PATCHES[patch_index - 1] = "-i"
else:
self._PATCHES[patch_index - 1] = "-e"
def patch_app(self, app: str, version: str, is_experimental: bool = False) -> None:
"""Revanced APP Patcher.