From 023b432c0b81132053aa8f529e75ced2101b4656 Mon Sep 17 00:00:00 2001 From: fankesyooni Date: Thu, 27 Apr 2023 21:17:55 +0800 Subject: [PATCH] Modify remove deprecated options for auto generic process --- src/content/index.html | 18 ------------------ src/content/render.js | 10 +--------- src/libs/locale.js | 6 ------ src/transaction.js | 10 +--------- 4 files changed, 2 insertions(+), 42 deletions(-) diff --git a/src/content/index.html b/src/content/index.html index 0c2576f..5f9ed16 100755 --- a/src/content/index.html +++ b/src/content/index.html @@ -162,15 +162,6 @@ -
- storage - - -
satellite @@ -198,15 +189,6 @@
-
- texture - - -
diff --git a/src/content/render.js b/src/content/render.js index 485198b..1810d41 100644 --- a/src/content/render.js +++ b/src/content/render.js @@ -71,11 +71,9 @@ const projectConfigs = { supportResourcesHook: 0, enableDebug: 0, enableDebugLog: 0, - enableYPrefsCache: 0, enableResourcesCache: 0, enableModuleStatus: 0, enableYChannel: 0, - enableMemberCache: 0 }, projectDependencies: { gradlePaper: '', @@ -308,11 +306,9 @@ const configForm = { supportResourcesHookSelect: () => valUtils.integerOf($('#support_resources_hook_select option:selected').val()), enableDebugSelect: () => valUtils.integerOf($('#enable_debug_select option:selected').val()), enableDebugLogSelect: () => valUtils.integerOf($('#enable_debug_log_select option:selected').val()), - enableYPrefsCacheSelect: () => valUtils.integerOf($('#enable_yprefs_cache_select option:selected').val()), enableResourcesCacheSelect: () => valUtils.integerOf($('#enable_resources_cache_select option:selected').val()), enableModuleStatusSelect: () => valUtils.integerOf($('#enable_module_status_select option:selected').val()), - enableYChannelSelect: () => valUtils.integerOf($('#enable_ychannel_select option:selected').val()), - enableMemberCacheSelect: () => valUtils.integerOf($('#enable_member_cache_select option:selected').val()) + enableYChannelSelect: () => valUtils.integerOf($('#enable_ychannel_select option:selected').val()) } /** @@ -347,11 +343,9 @@ const build = { projectConfigs.yukiHookApiConfig.supportResourcesHook = configForm.supportResourcesHookSelect(); projectConfigs.yukiHookApiConfig.enableDebug = configForm.enableDebugSelect(); projectConfigs.yukiHookApiConfig.enableDebugLog = configForm.enableDebugLogSelect(); - projectConfigs.yukiHookApiConfig.enableYPrefsCache = configForm.enableYPrefsCacheSelect(); projectConfigs.yukiHookApiConfig.enableResourcesCache = configForm.enableResourcesCacheSelect(); projectConfigs.yukiHookApiConfig.enableModuleStatus = configForm.enableModuleStatusSelect(); projectConfigs.yukiHookApiConfig.enableYChannel = configForm.enableYChannelSelect(); - projectConfigs.yukiHookApiConfig.enableMemberCache = configForm.enableMemberCacheSelect(); projectConfigs.projectDependencies = { gradlePaper: '', androidGradlePluginVersion: '', @@ -622,11 +616,9 @@ const configTemplate = { $('#support_resources_hook_select').val(data.yukiHookApiConfig.supportResourcesHook); $('#enable_debug_select').val(data.yukiHookApiConfig.enableDebug); $('#enable_debug_log_select').val(data.yukiHookApiConfig.enableDebugLog); - $('#enable_yprefs_cache_select').val(data.yukiHookApiConfig.enableYPrefsCache); $('#enable_resources_cache_select').val(data.yukiHookApiConfig.enableResourcesCache); $('#enable_module_status_select').val(data.yukiHookApiConfig.enableModuleStatus); $('#enable_ychannel_select').val(data.yukiHookApiConfig.enableYChannel); - $('#enable_member_cache_select').val(data.yukiHookApiConfig.enableMemberCache); monitor.refresh(); moduleScope.refresh(data.basicConfig.moduleScopes); page.snack(locale.format(locale.i18n.configTemplateLoaded, parse.name)); diff --git a/src/libs/locale.js b/src/libs/locale.js index 97d2e7a..99eb3cc 100644 --- a/src/libs/locale.js +++ b/src/libs/locale.js @@ -124,11 +124,9 @@ const locale = { "debugLogTagName": "Debug log TAG name (Default is YukiHookAPI)", "enableDebugMode": "Enable debug mode", "enableDebugLog": "Enable debug log output", - "enableYukiHookPrefsBridgeCache": "Enable YukiHookPrefsBridge key-value caching", "enableModuleResourcesCache": "Enable module Resources caching", "enableModuleStatus": "Enable module activation status listening", "enableYukiHookDataChannel": "Enable YukiHookDataChannel feature", - "enableMemberCache": "Enable founded reflection class, method, variable caching", "selectScopeAppsOrEnterOnceTip": "Please select the app you need to add to the scope from the list", "customize": "Customize", "systemFramework": "System Framework", @@ -259,11 +257,9 @@ const locale = { "debugLogTagName": "调试日志 TAG 名称 (不填默认为 YukiHookAPI)", "enableDebugMode": "启用 Debug 模式", "enableDebugLog": "启用调试日志输出功能", - "enableYukiHookPrefsBridgeCache": "启用 YukiHookPrefsBridge 键值缓存功能", "enableModuleResourcesCache": "启用模块 Resources 缓存功能", "enableModuleStatus": "启用模块激活状态监听功能", "enableYukiHookDataChannel": "启用 YukiHookDataChannel 功能", - "enableMemberCache": "启用已查找的反射类、方法、变量缓存功能", "selectScopeAppsOrEnterOnceTip": "请从下面的列表中选择你需要添加到作用域中的应用", "customize": "自定义", "systemFramework": "系统框架", @@ -394,11 +390,9 @@ const locale = { "debugLogTagName": "デバッググロタグ名(デフォルトはYukiHookAPI)", "enableDebugMode": "デバッグモードを有効にする", "enableDebugLog": "デバッグログ出力を有効にする", - "enableYukiHookPrefsBridgeCache": "YukiHookPrefsBridgeのKey-Valueキャッシングを有効にする", "enableModuleResourcesCache": "モジュールリソースのキャッシュを有効にする", "enableModuleStatus": "モジュールのアクティブ化ステータスの監視を有効にする", "enableYukiHookDataChannel": "YukiHookDataChannel機能を有効にする", - "enableMemberCache": "クエリされたリフレクションクラス、メソッド、変数キャッシングを有効にする", "selectScopeAppsOrEnterOnceTip": "以下のリストからスコープに追加するアプリを選択してください", "customize": "カスタマイズ", "systemFramework": "システムフレームワーク", diff --git a/src/transaction.js b/src/transaction.js index 94dc092..5744156 100644 --- a/src/transaction.js +++ b/src/transaction.js @@ -215,11 +215,9 @@ const transaction = { enable: (isEnabled) => 'isEnable = ' + (isEnabled ? 'true' : 'false') }, enableDebug: (isEnabled) => 'isDebug = ' + (isEnabled ? 'true' : 'false'), - enableYPrefsCache: (isEnabled) => 'isEnablePrefsBridgeCache = ' + (isEnabled ? 'true' : 'false'), enableResourcesCache: (isEnabled) => 'isEnableModuleAppResourcesCache = ' + (isEnabled ? 'true' : 'false'), enableModuleStatus: (isEnabled) => 'isEnableHookModuleStatus = ' + (isEnabled ? 'true' : 'false'), - enableYChannel: (isEnabled) => 'isEnableDataChannel = ' + (isEnabled ? 'true' : 'false'), - enableMemberCache: (isEnabled) => 'isEnableMemberCache = ' + (isEnabled ? 'true' : 'false') + enableYChannel: (isEnabled) => 'isEnableDataChannel = ' + (isEnabled ? 'true' : 'false') } }, 'MainActivity.kt': { @@ -350,9 +348,6 @@ const transaction = { if (configs.yukiHookApiConfig.enableDebug !== 0) hookEntryConfigsCode = codeFiles.append(hookEntryConfigsCode, codeFiles['HookEntry.kt'].configs.enableDebug(configs.yukiHookApiConfig.enableDebug === 1)); - if (configs.yukiHookApiConfig.enableYPrefsCache !== 0) - hookEntryConfigsCode = codeFiles.append(hookEntryConfigsCode, - codeFiles['HookEntry.kt'].configs.enableYPrefsCache(configs.yukiHookApiConfig.enableYPrefsCache === 1)); if (configs.yukiHookApiConfig.enableResourcesCache !== 0) hookEntryConfigsCode = codeFiles.append(hookEntryConfigsCode, codeFiles['HookEntry.kt'].configs.enableResourcesCache(configs.yukiHookApiConfig.enableResourcesCache === 1)); @@ -362,9 +357,6 @@ const transaction = { if (configs.yukiHookApiConfig.enableYChannel !== 0) hookEntryConfigsCode = codeFiles.append(hookEntryConfigsCode, codeFiles['HookEntry.kt'].configs.enableYChannel(configs.yukiHookApiConfig.enableYChannel === 1)); - if (configs.yukiHookApiConfig.enableMemberCache !== 0) - hookEntryConfigsCode = codeFiles.append(hookEntryConfigsCode, - codeFiles['HookEntry.kt'].configs.enableMemberCache(configs.yukiHookApiConfig.enableMemberCache === 1)); hookEntryConfigsCode = hookEntryConfigsCode.trim(); if (hookEntryConfigsCode === '') hookEntryConfigsCode = '// Your code here.'; let gradleDependenciesCode = '';