mirror of
https://github.com/HighCapable/YukiHookAPI-ProjectBuilder.git
synced 2025-09-01 08:15:27 +08:00
Modify remove deprecated options for auto generic process
This commit is contained in:
@@ -162,15 +162,6 @@
|
||||
<option class="i18n" value="2">{{noOfConfigure}}</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="mdui-textfield">
|
||||
<i class="mdui-icon material-icons">storage</i>
|
||||
<label class="mdui-textfield-label i18n">{{enableYukiHookPrefsBridgeCache}}</label>
|
||||
<select class="mdui-select" id="enable_yprefs_cache_select">
|
||||
<option class="i18n" value="0">{{notConfigureDefYes}}</option>
|
||||
<option class="i18n" value="1">{{yesOfConfigure}}</option>
|
||||
<option class="i18n" value="2">{{noOfConfigure}}</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="mdui-textfield">
|
||||
<i class="mdui-icon material-icons">satellite</i>
|
||||
<label class="mdui-textfield-label i18n">{{enableModuleResourcesCache}}</label>
|
||||
@@ -198,15 +189,6 @@
|
||||
<option class="i18n" value="2">{{noOfConfigure}}</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="mdui-textfield">
|
||||
<i class="mdui-icon material-icons">texture</i>
|
||||
<label class="mdui-textfield-label i18n">{{enableMemberCache}}</label>
|
||||
<select class="mdui-select" id="enable_member_cache_select">
|
||||
<option class="i18n" value="0">{{notConfigureDefYes}}</option>
|
||||
<option class="i18n" value="1">{{yesOfConfigure}}</option>
|
||||
<option class="i18n" value="2">{{noOfConfigure}}</option>
|
||||
</select>
|
||||
</div>
|
||||
<div style="margin-top: 15px"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
@@ -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));
|
||||
|
@@ -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": "システムフレームワーク",
|
||||
|
@@ -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 = '';
|
||||
|
Reference in New Issue
Block a user