diff --git a/patches/change_app_version.py b/patches/change_app_version.py index d3f890b..a72f4e9 100644 --- a/patches/change_app_version.py +++ b/patches/change_app_version.py @@ -54,7 +54,7 @@ def apply(patch_conf: PatchConfig_ChangeAppVersion) -> bool: for filename in files: file_path = os.path.join(root, filename) - if os.path.isfile(file_path) and filename.endswith(".smali"): + if os.path.isfile(file_path) and filename.endswith(".smali") and filename not in ["DeviceInfoUtil.smali"]: file_contents = None with open(file_path, "r", encoding="utf-8") as file: file_contents = file.read() @@ -80,7 +80,7 @@ def apply(patch_conf: PatchConfig_ChangeAppVersion) -> bool: patch_conf["version_name"] or patch_conf["_internal_app_version"], ) log.debug(f"replaced version name in file: {file_path}") - log.debug(f"previous: {patch_conf["_internal_app_build"]}") + log.debug(f"previous: {patch_conf["_internal_app_version"]}") log.debug(f"replaced: {patch_conf["version_code"]}") with open(file_path, "w", encoding="utf-8") as file: diff --git a/patches/force_static_request_urls.config.json b/patches/force_static_request_urls.config.json index 8415c42..7119c0c 100644 --- a/patches/force_static_request_urls.config.json +++ b/patches/force_static_request_urls.config.json @@ -1,5 +1,5 @@ { - "base_url": "https://api-s.anixsekai.com/", + "base_url": "", "values": [ { "file_path": "smali_classes2/com/swiftsoft/anixartd/network/api/ConfigApi.smali", @@ -16,6 +16,18 @@ { "file_path": "smali_classes2/com/swiftsoft/anixartd/network/api/EpisodeApi.smali", "value": "episode/{releaseId}" + }, + { + "file_path": "smali_classes2/com/swiftsoft/anixartd/network/api/EpisodeApi.smali", + "value": "episode/{releaseId}/{typeId}" + }, + { + "file_path": "smali_classes2/com/swiftsoft/anixartd/network/api/EpisodeApi.smali", + "value": "episode/{releaseId}/{typeId}/{sourceId}" + }, + { + "file_path": "smali_classes2/com/swiftsoft/anixartd/network/api/EpisodeApi.smali", + "value": "episode/target/{releaseId}/{sourceId}/{position}" } ], "constants": []