Skip to content

Commit 023b432

Browse files
committed
Modify remove deprecated options for auto generic process
1 parent 33daeaf commit 023b432

File tree

4 files changed

+2
-42
lines changed

4 files changed

+2
-42
lines changed

src/content/index.html

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -162,15 +162,6 @@
162162
<option class="i18n" value="2">{{noOfConfigure}}</option>
163163
</select>
164164
</div>
165-
<div class="mdui-textfield">
166-
<i class="mdui-icon material-icons">storage</i>
167-
<label class="mdui-textfield-label i18n">{{enableYukiHookPrefsBridgeCache}}</label>
168-
<select class="mdui-select" id="enable_yprefs_cache_select">
169-
<option class="i18n" value="0">{{notConfigureDefYes}}</option>
170-
<option class="i18n" value="1">{{yesOfConfigure}}</option>
171-
<option class="i18n" value="2">{{noOfConfigure}}</option>
172-
</select>
173-
</div>
174165
<div class="mdui-textfield">
175166
<i class="mdui-icon material-icons">satellite</i>
176167
<label class="mdui-textfield-label i18n">{{enableModuleResourcesCache}}</label>
@@ -198,15 +189,6 @@
198189
<option class="i18n" value="2">{{noOfConfigure}}</option>
199190
</select>
200191
</div>
201-
<div class="mdui-textfield">
202-
<i class="mdui-icon material-icons">texture</i>
203-
<label class="mdui-textfield-label i18n">{{enableMemberCache}}</label>
204-
<select class="mdui-select" id="enable_member_cache_select">
205-
<option class="i18n" value="0">{{notConfigureDefYes}}</option>
206-
<option class="i18n" value="1">{{yesOfConfigure}}</option>
207-
<option class="i18n" value="2">{{noOfConfigure}}</option>
208-
</select>
209-
</div>
210192
<div style="margin-top: 15px"></div>
211193
</div>
212194
</div>

src/content/render.js

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,9 @@ const projectConfigs = {
7171
supportResourcesHook: 0,
7272
enableDebug: 0,
7373
enableDebugLog: 0,
74-
enableYPrefsCache: 0,
7574
enableResourcesCache: 0,
7675
enableModuleStatus: 0,
7776
enableYChannel: 0,
78-
enableMemberCache: 0
7977
},
8078
projectDependencies: {
8179
gradlePaper: '',
@@ -308,11 +306,9 @@ const configForm = {
308306
supportResourcesHookSelect: () => valUtils.integerOf($('#support_resources_hook_select option:selected').val()),
309307
enableDebugSelect: () => valUtils.integerOf($('#enable_debug_select option:selected').val()),
310308
enableDebugLogSelect: () => valUtils.integerOf($('#enable_debug_log_select option:selected').val()),
311-
enableYPrefsCacheSelect: () => valUtils.integerOf($('#enable_yprefs_cache_select option:selected').val()),
312309
enableResourcesCacheSelect: () => valUtils.integerOf($('#enable_resources_cache_select option:selected').val()),
313310
enableModuleStatusSelect: () => valUtils.integerOf($('#enable_module_status_select option:selected').val()),
314-
enableYChannelSelect: () => valUtils.integerOf($('#enable_ychannel_select option:selected').val()),
315-
enableMemberCacheSelect: () => valUtils.integerOf($('#enable_member_cache_select option:selected').val())
311+
enableYChannelSelect: () => valUtils.integerOf($('#enable_ychannel_select option:selected').val())
316312
}
317313

318314
/**
@@ -347,11 +343,9 @@ const build = {
347343
projectConfigs.yukiHookApiConfig.supportResourcesHook = configForm.supportResourcesHookSelect();
348344
projectConfigs.yukiHookApiConfig.enableDebug = configForm.enableDebugSelect();
349345
projectConfigs.yukiHookApiConfig.enableDebugLog = configForm.enableDebugLogSelect();
350-
projectConfigs.yukiHookApiConfig.enableYPrefsCache = configForm.enableYPrefsCacheSelect();
351346
projectConfigs.yukiHookApiConfig.enableResourcesCache = configForm.enableResourcesCacheSelect();
352347
projectConfigs.yukiHookApiConfig.enableModuleStatus = configForm.enableModuleStatusSelect();
353348
projectConfigs.yukiHookApiConfig.enableYChannel = configForm.enableYChannelSelect();
354-
projectConfigs.yukiHookApiConfig.enableMemberCache = configForm.enableMemberCacheSelect();
355349
projectConfigs.projectDependencies = {
356350
gradlePaper: '',
357351
androidGradlePluginVersion: '',
@@ -622,11 +616,9 @@ const configTemplate = {
622616
$('#support_resources_hook_select').val(data.yukiHookApiConfig.supportResourcesHook);
623617
$('#enable_debug_select').val(data.yukiHookApiConfig.enableDebug);
624618
$('#enable_debug_log_select').val(data.yukiHookApiConfig.enableDebugLog);
625-
$('#enable_yprefs_cache_select').val(data.yukiHookApiConfig.enableYPrefsCache);
626619
$('#enable_resources_cache_select').val(data.yukiHookApiConfig.enableResourcesCache);
627620
$('#enable_module_status_select').val(data.yukiHookApiConfig.enableModuleStatus);
628621
$('#enable_ychannel_select').val(data.yukiHookApiConfig.enableYChannel);
629-
$('#enable_member_cache_select').val(data.yukiHookApiConfig.enableMemberCache);
630622
monitor.refresh();
631623
moduleScope.refresh(data.basicConfig.moduleScopes);
632624
page.snack(locale.format(locale.i18n.configTemplateLoaded, parse.name));

src/libs/locale.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,9 @@ const locale = {
124124
"debugLogTagName": "Debug log TAG name (Default is YukiHookAPI)",
125125
"enableDebugMode": "Enable debug mode",
126126
"enableDebugLog": "Enable debug log output",
127-
"enableYukiHookPrefsBridgeCache": "Enable YukiHookPrefsBridge key-value caching",
128127
"enableModuleResourcesCache": "Enable module Resources caching",
129128
"enableModuleStatus": "Enable module activation status listening",
130129
"enableYukiHookDataChannel": "Enable YukiHookDataChannel feature",
131-
"enableMemberCache": "Enable founded reflection class, method, variable caching",
132130
"selectScopeAppsOrEnterOnceTip": "Please select the app you need to add to the scope from the list",
133131
"customize": "Customize",
134132
"systemFramework": "System Framework",
@@ -259,11 +257,9 @@ const locale = {
259257
"debugLogTagName": "调试日志 TAG 名称 (不填默认为 YukiHookAPI)",
260258
"enableDebugMode": "启用 Debug 模式",
261259
"enableDebugLog": "启用调试日志输出功能",
262-
"enableYukiHookPrefsBridgeCache": "启用 YukiHookPrefsBridge 键值缓存功能",
263260
"enableModuleResourcesCache": "启用模块 Resources 缓存功能",
264261
"enableModuleStatus": "启用模块激活状态监听功能",
265262
"enableYukiHookDataChannel": "启用 YukiHookDataChannel 功能",
266-
"enableMemberCache": "启用已查找的反射类、方法、变量缓存功能",
267263
"selectScopeAppsOrEnterOnceTip": "请从下面的列表中选择你需要添加到作用域中的应用",
268264
"customize": "自定义",
269265
"systemFramework": "系统框架",
@@ -394,11 +390,9 @@ const locale = {
394390
"debugLogTagName": "デバッググロタグ名(デフォルトはYukiHookAPI)",
395391
"enableDebugMode": "デバッグモードを有効にする",
396392
"enableDebugLog": "デバッグログ出力を有効にする",
397-
"enableYukiHookPrefsBridgeCache": "YukiHookPrefsBridgeのKey-Valueキャッシングを有効にする",
398393
"enableModuleResourcesCache": "モジュールリソースのキャッシュを有効にする",
399394
"enableModuleStatus": "モジュールのアクティブ化ステータスの監視を有効にする",
400395
"enableYukiHookDataChannel": "YukiHookDataChannel機能を有効にする",
401-
"enableMemberCache": "クエリされたリフレクションクラス、メソッド、変数キャッシングを有効にする",
402396
"selectScopeAppsOrEnterOnceTip": "以下のリストからスコープに追加するアプリを選択してください",
403397
"customize": "カスタマイズ",
404398
"systemFramework": "システムフレームワーク",

src/transaction.js

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -215,11 +215,9 @@ const transaction = {
215215
enable: (isEnabled) => 'isEnable = ' + (isEnabled ? 'true' : 'false')
216216
},
217217
enableDebug: (isEnabled) => 'isDebug = ' + (isEnabled ? 'true' : 'false'),
218-
enableYPrefsCache: (isEnabled) => 'isEnablePrefsBridgeCache = ' + (isEnabled ? 'true' : 'false'),
219218
enableResourcesCache: (isEnabled) => 'isEnableModuleAppResourcesCache = ' + (isEnabled ? 'true' : 'false'),
220219
enableModuleStatus: (isEnabled) => 'isEnableHookModuleStatus = ' + (isEnabled ? 'true' : 'false'),
221-
enableYChannel: (isEnabled) => 'isEnableDataChannel = ' + (isEnabled ? 'true' : 'false'),
222-
enableMemberCache: (isEnabled) => 'isEnableMemberCache = ' + (isEnabled ? 'true' : 'false')
220+
enableYChannel: (isEnabled) => 'isEnableDataChannel = ' + (isEnabled ? 'true' : 'false')
223221
}
224222
},
225223
'MainActivity.kt': {
@@ -350,9 +348,6 @@ const transaction = {
350348
if (configs.yukiHookApiConfig.enableDebug !== 0)
351349
hookEntryConfigsCode = codeFiles.append(hookEntryConfigsCode,
352350
codeFiles['HookEntry.kt'].configs.enableDebug(configs.yukiHookApiConfig.enableDebug === 1));
353-
if (configs.yukiHookApiConfig.enableYPrefsCache !== 0)
354-
hookEntryConfigsCode = codeFiles.append(hookEntryConfigsCode,
355-
codeFiles['HookEntry.kt'].configs.enableYPrefsCache(configs.yukiHookApiConfig.enableYPrefsCache === 1));
356351
if (configs.yukiHookApiConfig.enableResourcesCache !== 0)
357352
hookEntryConfigsCode = codeFiles.append(hookEntryConfigsCode,
358353
codeFiles['HookEntry.kt'].configs.enableResourcesCache(configs.yukiHookApiConfig.enableResourcesCache === 1));
@@ -362,9 +357,6 @@ const transaction = {
362357
if (configs.yukiHookApiConfig.enableYChannel !== 0)
363358
hookEntryConfigsCode = codeFiles.append(hookEntryConfigsCode,
364359
codeFiles['HookEntry.kt'].configs.enableYChannel(configs.yukiHookApiConfig.enableYChannel === 1));
365-
if (configs.yukiHookApiConfig.enableMemberCache !== 0)
366-
hookEntryConfigsCode = codeFiles.append(hookEntryConfigsCode,
367-
codeFiles['HookEntry.kt'].configs.enableMemberCache(configs.yukiHookApiConfig.enableMemberCache === 1));
368360
hookEntryConfigsCode = hookEntryConfigsCode.trim();
369361
if (hookEntryConfigsCode === '') hookEntryConfigsCode = '// Your code here.';
370362
let gradleDependenciesCode = '';

0 commit comments

Comments
 (0)