mirror of
https://github.com/HighCapable/YukiHookAPI-ProjectBuilder.git
synced 2025-09-07 19:14:09 +08:00
Compare commits
18 Commits
Author | SHA1 | Date | |
---|---|---|---|
37e550aade
|
|||
55a0390a0f
|
|||
c7e160c2fc
|
|||
023b432c0b
|
|||
33daeaf9e5
|
|||
55ae6600bc
|
|||
df9c0627de
|
|||
bafd0f08f4
|
|||
ebbbafeb99
|
|||
e8f84b5bfa
|
|||
09d93dc4aa
|
|||
56e3f618ee
|
|||
f9edfa7a93
|
|||
74d12c03b4
|
|||
16c31e5f4c
|
|||
838598243b
|
|||
559fc85bd1
|
|||
f8ee164cbd
|
1
.idea/inspectionProfiles/Project_Default.xml
generated
1
.idea/inspectionProfiles/Project_Default.xml
generated
@@ -12,6 +12,7 @@
|
||||
</option>
|
||||
<option name="myCustomValuesEnabled" value="true" />
|
||||
</inspection_tool>
|
||||
<inspection_tool class="HttpUrlsUsage" enabled="false" level="WEAK WARNING" enabled_by_default="false" />
|
||||
<inspection_tool class="SpellCheckingInspection" enabled="false" level="TYPO" enabled_by_default="false">
|
||||
<option name="processCode" value="true" />
|
||||
<option name="processLiterals" value="true" />
|
||||
|
6
.idea/vcs.xml
generated
Normal file
6
.idea/vcs.xml
generated
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="$PROJECT_DIR$" vcs="Git" />
|
||||
</component>
|
||||
</project>
|
98
README-zh-CN.md
Normal file
98
README-zh-CN.md
Normal file
@@ -0,0 +1,98 @@
|
||||
# YukiHookAPI Project Builder
|
||||
|
||||

|
||||

|
||||
[](https://t.me/YukiHookAPI)
|
||||
<br/><br/>
|
||||
<img src="https://github.com/fankes/YuKiHookAPI/blob/master/img-src/icon.png?raw=true" width = "100" height = "100"/>
|
||||
<br/>
|
||||
<br/>
|
||||
帮助你快速创建一个使用 YukiHookAPI 打造的 Xposed 项目模板。
|
||||
<br/>
|
||||
|
||||
[English](https://github.com/fankes/YukiHookAPI-ProjectBuilder/blob/master/README.md) | 简体中文
|
||||
|
||||
## 这是什么
|
||||
|
||||
- 这是一个使用 [YukiHookAPI](https://github.com/fankes/YukiHookAPI) 作为核心的 Xposed 模块自动构建工具
|
||||
|
||||
- 实现自动化搜索依赖快速搭建一个包含 Xposed 模块环境的 Android 项目模板
|
||||
|
||||
## 如何使用
|
||||
|
||||
- 本项目使用 **Electron** 开发,快速实现多平台本地化应用程序的构建和运行
|
||||
|
||||
你可以直接从 [Release](https://github.com/fankes/YukiHookAPI-ProjectBuilder/releases) 下载适合于你平台的应用程序。
|
||||
|
||||
**以下是手动部署与编译步骤**
|
||||
|
||||
首先你需要安装 [node.js](https://nodejs.org/zh-cn/)
|
||||
|
||||
IDE 工具建议使用 **IntelliJ IDEA** 或 **WebStorm**
|
||||
|
||||
不建议使用 **Visual Studio Code** 对代码进行格式化,可能会造成一些错误。
|
||||
|
||||
- 执行如下命令安装 Electron
|
||||
|
||||
```
|
||||
npm install --save-dev electron
|
||||
```
|
||||
|
||||
- 执行如下命令安装 yarn
|
||||
|
||||
```
|
||||
npm install yarn
|
||||
```
|
||||
|
||||
- 进入项目目录,执行如下命令安装依赖
|
||||
|
||||
```
|
||||
npm install --save-dev @electron-forge/cli
|
||||
```
|
||||
|
||||
```
|
||||
npx electron-forge import
|
||||
```
|
||||
|
||||
- 使用如下命令进行调试
|
||||
|
||||
```
|
||||
npm run start
|
||||
```
|
||||
|
||||
- 使用如下命令进行编译 & 打包
|
||||
|
||||
**Linux/macOS**
|
||||
|
||||
```
|
||||
npm run make
|
||||
```
|
||||
|
||||
**Windows**
|
||||
|
||||
```
|
||||
npm run package
|
||||
```
|
||||
|
||||
## 许可证
|
||||
|
||||
- [AGPL-3.0](https://www.gnu.org/licenses/agpl-3.0.html)
|
||||
|
||||
```
|
||||
Copyright (C) 2019-2023 HighCapable
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation, either version 3 of the
|
||||
License, or (at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
```
|
||||
|
||||
版权所有 © 2019-2023 HighCapable
|
77
README.md
77
README.md
@@ -1,32 +1,29 @@
|
||||
# YukiHookAPI Project Builder
|
||||
|
||||

|
||||

|
||||

|
||||
[](https://t.me/YukiHookAPI)
|
||||
<br/><br/>
|
||||
<img src="https://github.com/fankes/YuKiHookAPI/blob/master/img-src/icon.png" width = "100" height = "100"/>
|
||||
<img src="https://github.com/fankes/YuKiHookAPI/blob/master/img-src/icon.png?raw=true" width = "100" height = "100"/>
|
||||
<br/>
|
||||
<br/>
|
||||
A Xposed Project Builder by YukiHookAPI.
|
||||
<br/>
|
||||
|
||||
English | [简体中文](https://github.com/fankes/YukiHookAPI-ProjectBuilder/blob/master/README-zh-CN.md)
|
||||
|
||||
## What's this
|
||||
|
||||
- This is an automatic building tool for Xposed modules using [YukiHookAPI](https://github.com/fankes/YukiHookAPI) as the core
|
||||
|
||||
- Implementing automated search relies on quickly building an Android project template that includes an Xposed module environment
|
||||
|
||||
**这是什么**
|
||||
|
||||
- 这是一个使用 [YukiHookAPI](https://github.com/fankes/YukiHookAPI) 作为核心的 Xposed 模块自动构建工具
|
||||
|
||||
- 实现自动化搜索依赖快速搭建一个包含 Xposed 模块环境的 Android 项目模板
|
||||
- Implementing automated search relies on quickly building an Android project template that includes a Xposed module environment
|
||||
|
||||
## How to use
|
||||
|
||||
- This project is developed using **Electron** to quickly build and run multi-platform localized applications
|
||||
|
||||
You can download the application for your platform directly from [Release](https://github.com/fankes/YukiHookAPI-ProjectBuilder/releases).
|
||||
You can download the application for your platform directly
|
||||
from [Release](https://github.com/fankes/YukiHookAPI-ProjectBuilder/releases).
|
||||
|
||||
**The following are the manual deployment and compilation steps**
|
||||
|
||||
@@ -78,68 +75,12 @@ npm run make
|
||||
npm run package
|
||||
```
|
||||
|
||||
**如何使用**
|
||||
|
||||
- 本项目使用 **Electron** 开发,快速实现多平台本地化应用程序的构建和运行
|
||||
|
||||
你可以直接从 [Release](https://github.com/fankes/YukiHookAPI-ProjectBuilder/releases) 下载适合于你平台的应用程序。
|
||||
|
||||
**以下是手动部署与编译步骤**
|
||||
|
||||
首先你需要安装 [node.js](https://nodejs.org/zh-cn/)
|
||||
|
||||
IDE 工具建议使用 **IntelliJ IDEA** 或 **WebStorm**
|
||||
|
||||
不建议使用 **Visual Studio Code** 对代码进行格式化,可能会造成一些错误。
|
||||
|
||||
- 执行如下命令安装 Electron
|
||||
|
||||
```
|
||||
npm install --save-dev electron
|
||||
```
|
||||
|
||||
- 执行如下命令安装 yarn
|
||||
|
||||
```
|
||||
npm install yarn
|
||||
```
|
||||
|
||||
- 进入项目目录,执行如下命令安装依赖
|
||||
|
||||
```
|
||||
npm install --save-dev @electron-forge/cli
|
||||
```
|
||||
|
||||
```
|
||||
npx electron-forge import
|
||||
```
|
||||
|
||||
- 使用如下命令进行调试
|
||||
|
||||
```
|
||||
npm run start
|
||||
```
|
||||
|
||||
- 使用如下命令进行编译 & 打包
|
||||
|
||||
**Linux/macOS**
|
||||
|
||||
```
|
||||
npm run make
|
||||
```
|
||||
|
||||
**Windows**
|
||||
|
||||
```
|
||||
npm run package
|
||||
```
|
||||
|
||||
## License
|
||||
|
||||
- [AGPL-3.0](https://www.gnu.org/licenses/agpl-3.0.html)
|
||||
|
||||
```
|
||||
Copyright (C) 2019-2022 HighCapable
|
||||
Copyright (C) 2019-2023 HighCapable
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
@@ -155,4 +96,4 @@ You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
```
|
||||
|
||||
版权所有 © 2019-2022 HighCapable
|
||||
Copyright © 2019-2023 HighCapable
|
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "yukihookapi-projectbuilder",
|
||||
"productName": "YukiHookAPI Project Builder",
|
||||
"version": "1.0.0",
|
||||
"version": "1.0.3",
|
||||
"description": "A Xposed Project Builder by YukiHookAPI",
|
||||
"main": "src/app.js",
|
||||
"scripts": {
|
||||
@@ -18,7 +18,7 @@
|
||||
"@electron-forge/maker-rpm": "^6.0.0-beta.64",
|
||||
"@electron-forge/maker-squirrel": "^6.0.0-beta.64",
|
||||
"@electron-forge/maker-zip": "^6.0.0-beta.64",
|
||||
"electron": "^19.0.7",
|
||||
"electron": "20.3.9",
|
||||
"electron-icon-builder": "^2.0.1"
|
||||
},
|
||||
"dependencies": {
|
||||
|
Binary file not shown.
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* YukiHookAPI Project Builder - A Xposed Project Builder by YukiHookAPI.
|
||||
* Copyright (C) 2019-2022 HighCapable
|
||||
* Copyright (C) 2019-2023 HighCapable
|
||||
* https://github.com/fankes/YukiHookAPI-ProjectBuilder
|
||||
*
|
||||
* This software is non-free but opensource software: you can redistribute it
|
||||
|
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* YukiHookAPI Project Builder - A Xposed Project Builder by YukiHookAPI.
|
||||
* Copyright (C) 2019-2022 HighCapable
|
||||
* Copyright (C) 2019-2023 HighCapable
|
||||
* https://github.com/fankes/YukiHookAPI-ProjectBuilder
|
||||
*
|
||||
* This software is non-free but opensource software: you can redistribute it
|
||||
|
@@ -1,6 +1,6 @@
|
||||
<!--
|
||||
YukiHookAPI Project Builder - A Xposed Project Builder by YukiHookAPI.
|
||||
Copyright (C) 2019-2022 HighCapable
|
||||
Copyright (C) 2019-2023 HighCapable
|
||||
https://github.com/fankes/YukiHookAPI-ProjectBuilder
|
||||
|
||||
This software is non-free but opensource software: you can redistribute it
|
||||
@@ -28,9 +28,9 @@
|
||||
<meta content="no-siteapp">
|
||||
<meta content="light dark" name="color-scheme">
|
||||
<title> </title>
|
||||
<link href="css/mdui.min.css" rel="stylesheet">
|
||||
<link href="render.css" rel="stylesheet">
|
||||
<script src="js/mdui.min.js"></script>
|
||||
<link href="./css/mdui.min.css" rel="stylesheet">
|
||||
<link href="./render.css" rel="stylesheet">
|
||||
<script src="./js/mdui.min.js"></script>
|
||||
</head>
|
||||
<body class="mdui-container-fluid mdui-theme-primary-orange mdui-theme-accent-orange mdui-theme-layout-auto">
|
||||
<div id="root_div" style="font-size:12pt;line-height:150%;padding-top:5pt;padding-left:10pt;padding-right:10pt;display:none">
|
||||
@@ -72,19 +72,18 @@
|
||||
<div class="mdui-textfield mdui-textfield-floating-label mdui-col-xs-6">
|
||||
<i class="mdui-icon material-icons">details</i>
|
||||
<label class="mdui-textfield-label i18n">{{appMinApiVersion}}</label>
|
||||
<input class="mdui-textfield-input" id="app_min_api_text" required type="number" value="27"/>
|
||||
<input class="mdui-textfield-input" id="app_min_api_text" required type="number" value="0"/>
|
||||
</div>
|
||||
<div class="mdui-textfield mdui-textfield-floating-label mdui-col-xs-6">
|
||||
<i class="mdui-icon material-icons">change_history</i>
|
||||
<label class="mdui-textfield-label i18n">{{appTargetApiVersion}}</label>
|
||||
<input class="mdui-textfield-input" id="app_target_api_text" required type="number"
|
||||
value="32"/>
|
||||
<input class="mdui-textfield-input" id="app_target_api_text" required type="number" value="0"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mdui-textfield mdui-textfield-floating-label">
|
||||
<i class="mdui-icon material-icons">extension</i>
|
||||
<label class="mdui-textfield-label i18n">{{xposedMinApiVersion}} (Xposed Min API Version)</label>
|
||||
<input class="mdui-textfield-input" id="xposed_min_api_text" required type="number" value="93"/>
|
||||
<input class="mdui-textfield-input" id="xposed_min_api_text" required type="number" value="0"/>
|
||||
</div>
|
||||
<div class="mdui-textfield">
|
||||
<i class="mdui-icon material-icons">settings_input_hdmi</i>
|
||||
@@ -100,7 +99,7 @@
|
||||
</div>
|
||||
<div class="mdui-textfield" id="new_xshare_prefs_div">
|
||||
<i class="mdui-icon material-icons">style</i>
|
||||
<label class="mdui-textfield-label i18n">{{declarationNewXSharePrefs}}</label>
|
||||
<label class="mdui-textfield-label i18n">{{useNewXSharedPreferences}}</label>
|
||||
<select class="mdui-select" id="new_xshare_prefs_select">
|
||||
<option class="i18n" value="0">{{notConfigure}}</option>
|
||||
<option class="i18n" value="1">{{yesOfConfigure}}</option>
|
||||
@@ -118,7 +117,7 @@
|
||||
onclick="moduleScope.showAddDialog()"
|
||||
style="margin-left: 40px;width: 92%">
|
||||
<i class="mdui-icon material-icons" style="margin-bottom: 4px;margin-right: 4px">add</i>
|
||||
<span class="i18n" style="text-transform: none">{{addApps}}</span>
|
||||
<span class="i18n" style="text-transform: none">{{addNewApp}}</span>
|
||||
</button>
|
||||
</div>
|
||||
<div style="margin-top: 15px"></div>
|
||||
@@ -142,8 +141,17 @@
|
||||
</div>
|
||||
<div class="mdui-textfield mdui-textfield-floating-label">
|
||||
<i class="mdui-icon material-icons">local_offer</i>
|
||||
<label class="mdui-textfield-label i18n">{{debugTagName}}</label>
|
||||
<input class="mdui-textfield-input" id="debug_tag_name_text"/>
|
||||
<label class="mdui-textfield-label i18n">{{debugLogTagName}}</label>
|
||||
<input class="mdui-textfield-input" id="debug_log_tag_name_text"/>
|
||||
</div>
|
||||
<div class="mdui-textfield">
|
||||
<i class="mdui-icon material-icons">pageview</i>
|
||||
<label class="mdui-textfield-label i18n">{{enableDebugLog}}</label>
|
||||
<select class="mdui-select" id="enable_debug_log_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">bug_report</i>
|
||||
@@ -154,24 +162,6 @@
|
||||
<option class="i18n" value="2">{{noOfConfigure}}</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="mdui-textfield">
|
||||
<i class="mdui-icon material-icons">pageview</i>
|
||||
<label class="mdui-textfield-label i18n">{{enablePrintLogcat}}</label>
|
||||
<select class="mdui-select" id="enable_print_logcat_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">storage</i>
|
||||
<label class="mdui-textfield-label i18n">{{enableYukiHookModulePrefsCache}}</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>
|
||||
@@ -199,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>
|
||||
@@ -217,7 +198,7 @@
|
||||
</button>
|
||||
</div>
|
||||
<div class="mdui-dialog" id="module_scope_dialog" style="max-width: 500px">
|
||||
<div class="mdui-dialog-title i18n">{{addApps}}</div>
|
||||
<div class="mdui-dialog-title i18n">{{addNewApp}}</div>
|
||||
<div>
|
||||
<span class="i18n" style="margin-left: 24px">{{selectScopeAppsOrEnterOnceTip}}</span>
|
||||
<select class="mdui-select" id="module_scope_select" style="margin-left: 26px;margin-top: 10px">
|
||||
@@ -319,5 +300,5 @@
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
<script src="render.js"></script>
|
||||
<script src="./render.js"></script>
|
||||
</html>
|
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* YukiHookAPI Project Builder - A Xposed Project Builder by YukiHookAPI.
|
||||
* Copyright (C) 2019-2022 HighCapable
|
||||
* Copyright (C) 2019-2023 HighCapable
|
||||
* https://github.com/fankes/YukiHookAPI-ProjectBuilder
|
||||
*
|
||||
* This software is non-free but opensource software: you can redistribute it
|
||||
|
@@ -2,7 +2,7 @@
|
||||
|
||||
/*
|
||||
* YukiHookAPI Project Builder - A Xposed Project Builder by YukiHookAPI.
|
||||
* Copyright (C) 2019-2022 HighCapable
|
||||
* Copyright (C) 2019-2023 HighCapable
|
||||
* https://github.com/fankes/YukiHookAPI-ProjectBuilder
|
||||
*
|
||||
* This software is non-free but opensource software: you can redistribute it
|
||||
@@ -57,9 +57,9 @@ const projectConfigs = {
|
||||
packageName: '',
|
||||
appName: '',
|
||||
moduleDescription: '',
|
||||
appMinApi: 0,
|
||||
appTargetApi: 0,
|
||||
xposedMinApi: 0,
|
||||
appMinApi: 27,
|
||||
appTargetApi: 33,
|
||||
xposedMinApi: 93,
|
||||
moduleCompoment: 0,
|
||||
targetXposedPlatform: 0,
|
||||
newXSharePrefs: 0,
|
||||
@@ -67,15 +67,13 @@ const projectConfigs = {
|
||||
},
|
||||
yukiHookApiConfig: {
|
||||
entryClassName: '',
|
||||
debugTagName: '',
|
||||
debugLogTagName: '',
|
||||
supportResourcesHook: 0,
|
||||
enableDebug: 0,
|
||||
enablePrintLogcat: 0,
|
||||
enableYPrefsCache: 0,
|
||||
enableDebugLog: 0,
|
||||
enableResourcesCache: 0,
|
||||
enableModuleStatus: 0,
|
||||
enableYChannel: 0,
|
||||
enableMemberCache: 0
|
||||
},
|
||||
projectDependencies: {
|
||||
gradlePaper: '',
|
||||
@@ -301,18 +299,16 @@ const configForm = {
|
||||
appTargetApiText: () => $('#app_target_api_text').val(),
|
||||
xposedMinApiText: () => $('#xposed_min_api_text').val(),
|
||||
entryClassNameText: () => $('#entry_class_name_text').val(),
|
||||
debugTagNameText: () => $('#debug_tag_name_text').val(),
|
||||
debugLogTagNameText: () => $('#debug_log_tag_name_text').val(),
|
||||
compomentSelect: () => valUtils.integerOf($('#compoment_select option:selected').val()),
|
||||
targetXposedPlatformSelect: () => valUtils.integerOf($('#target_xposed_platform_select option:selected').val()),
|
||||
newXSharePrefsSelect: () => valUtils.integerOf($('#new_xshare_prefs_select option:selected').val()),
|
||||
supportResourcesHookSelect: () => valUtils.integerOf($('#support_resources_hook_select option:selected').val()),
|
||||
enableDebugSelect: () => valUtils.integerOf($('#enable_debug_select option:selected').val()),
|
||||
enablePrintLogcatSelect: () => valUtils.integerOf($('#enable_print_logcat_select option:selected').val()),
|
||||
enableYPrefsCacheSelect: () => valUtils.integerOf($('#enable_yprefs_cache_select option:selected').val()),
|
||||
enableDebugLogSelect: () => valUtils.integerOf($('#enable_debug_log_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())
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -343,15 +339,13 @@ const build = {
|
||||
projectConfigs.basicConfig.newXSharePrefs = configForm.newXSharePrefsSelect();
|
||||
projectConfigs.basicConfig.moduleScopes = moduleScope.moduleScopesData();
|
||||
projectConfigs.yukiHookApiConfig.entryClassName = configForm.entryClassNameText();
|
||||
projectConfigs.yukiHookApiConfig.debugTagName = configForm.debugTagNameText();
|
||||
projectConfigs.yukiHookApiConfig.debugLogTagName = configForm.debugLogTagNameText();
|
||||
projectConfigs.yukiHookApiConfig.supportResourcesHook = configForm.supportResourcesHookSelect();
|
||||
projectConfigs.yukiHookApiConfig.enableDebug = configForm.enableDebugSelect();
|
||||
projectConfigs.yukiHookApiConfig.enablePrintLogcat = configForm.enablePrintLogcatSelect();
|
||||
projectConfigs.yukiHookApiConfig.enableYPrefsCache = configForm.enableYPrefsCacheSelect();
|
||||
projectConfigs.yukiHookApiConfig.enableDebugLog = configForm.enableDebugLogSelect();
|
||||
projectConfigs.yukiHookApiConfig.enableResourcesCache = configForm.enableResourcesCacheSelect();
|
||||
projectConfigs.yukiHookApiConfig.enableModuleStatus = configForm.enableModuleStatusSelect();
|
||||
projectConfigs.yukiHookApiConfig.enableYChannel = configForm.enableYChannelSelect();
|
||||
projectConfigs.yukiHookApiConfig.enableMemberCache = configForm.enableMemberCacheSelect();
|
||||
projectConfigs.projectDependencies = {
|
||||
gradlePaper: '',
|
||||
androidGradlePluginVersion: '',
|
||||
@@ -615,18 +609,16 @@ const configTemplate = {
|
||||
$('#app_target_api_text').val(data.basicConfig.appTargetApi);
|
||||
$('#xposed_min_api_text').val(data.basicConfig.xposedMinApi);
|
||||
$('#entry_class_name_text').val(data.yukiHookApiConfig.entryClassName);
|
||||
$('#debug_tag_name_text').val(data.yukiHookApiConfig.debugTagName);
|
||||
$('#debug_log_tag_name_text').val(data.yukiHookApiConfig.debugLogTagName);
|
||||
$('#compoment_select').val(data.basicConfig.moduleCompoment);
|
||||
$('#target_xposed_platform_select').val(data.basicConfig.targetXposedPlatform);
|
||||
$('#new_xshare_prefs_select').val(data.basicConfig.newXSharePrefs);
|
||||
$('#support_resources_hook_select').val(data.yukiHookApiConfig.supportResourcesHook);
|
||||
$('#enable_debug_select').val(data.yukiHookApiConfig.enableDebug);
|
||||
$('#enable_print_logcat_select').val(data.yukiHookApiConfig.enablePrintLogcat);
|
||||
$('#enable_yprefs_cache_select').val(data.yukiHookApiConfig.enableYPrefsCache);
|
||||
$('#enable_debug_log_select').val(data.yukiHookApiConfig.enableDebugLog);
|
||||
$('#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));
|
||||
@@ -683,6 +675,11 @@ const page = {
|
||||
$(element).attr('placeholder', innerHtml.replace(/\{\{(.*)}}/, i18nText));
|
||||
else element.innerHTML = innerHtml.replace(/\{\{(.*)}}/, i18nText);
|
||||
});
|
||||
/** 初始化必要数据 */
|
||||
$('#app_min_api_text').val(projectConfigs.basicConfig.appMinApi);
|
||||
$('#app_target_api_text').val(projectConfigs.basicConfig.appTargetApi);
|
||||
$('#xposed_min_api_text').val(projectConfigs.basicConfig.xposedMinApi);
|
||||
/** 显示页面 */
|
||||
$('#root_div').show();
|
||||
page.checkForUpdates(false);
|
||||
},
|
||||
|
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* YukiHookAPI Project Builder - A Xposed Project Builder by YukiHookAPI.
|
||||
* Copyright (C) 2019-2022 HighCapable
|
||||
* Copyright (C) 2019-2023 HighCapable
|
||||
* https://github.com/fankes/YukiHookAPI-ProjectBuilder
|
||||
*
|
||||
* This software is non-free but opensource software: you can redistribute it
|
||||
|
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* YukiHookAPI Project Builder - A Xposed Project Builder by YukiHookAPI.
|
||||
* Copyright (C) 2019-2022 HighCapable
|
||||
* Copyright (C) 2019-2023 HighCapable
|
||||
* https://github.com/fankes/YukiHookAPI-ProjectBuilder
|
||||
*
|
||||
* This software is non-free but opensource software: you can redistribute it
|
||||
|
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* YukiHookAPI Project Builder - A Xposed Project Builder by YukiHookAPI.
|
||||
* Copyright (C) 2019-2022 HighCapable
|
||||
* Copyright (C) 2019-2023 HighCapable
|
||||
* https://github.com/fankes/YukiHookAPI-ProjectBuilder
|
||||
*
|
||||
* This software is non-free but opensource software: you can redistribute it
|
||||
@@ -107,28 +107,26 @@ const locale = {
|
||||
"agpVersion": "Android Gradle Plugin Version",
|
||||
"kotlinVersion": "Kotlin Version",
|
||||
"yukiHookApiVersion": "YukiHookAPI Version",
|
||||
"createDefaultActivity": "Create default Activity (with active state)",
|
||||
"createBlankActivity": "Create a blank Activity",
|
||||
"withoutUiComponents": "No UI components required",
|
||||
"createDefaultActivity": "Create Default Activity (with active state)",
|
||||
"createBlankActivity": "Create Blank Activity",
|
||||
"withoutUiComponents": "No UI Components",
|
||||
"appMinApiVersion": "App Min API Version",
|
||||
"appTargetApiVersion": "App Target API Version",
|
||||
"xposedMinApiVersion": "Xposed Min API Version",
|
||||
"targetXposedPlatform": "Target Xposed Platform",
|
||||
"universal": "Universal",
|
||||
"nativeXposed": "Native Xposed",
|
||||
"declarationNewXSharePrefs": "Declaration New XShare Prefs (Xposed Min API ≥ 93 was optional)",
|
||||
"useNewXSharedPreferences": "Use New XSharedPreferences (Xposed Min API ≥ 93 was optional)",
|
||||
"moduleScope": "Module Scope",
|
||||
"addApps": "Add apps",
|
||||
"entryClassName": "Entry class name (When blank use the default value)",
|
||||
"addResourcesHookSupport": "Add Resources Hook support",
|
||||
"debugTagName": "Debug TAG name (Default is YukiHookAPI)",
|
||||
"enableDebugMode": "Enable debug mode",
|
||||
"enablePrintLogcat": "Enable debug log output",
|
||||
"enableYukiHookModulePrefsCache": "Enable YukiHookModulePrefs 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",
|
||||
"addNewApp": "Add New App",
|
||||
"entryClassName": "Entry Class Name (When blank use the default value)",
|
||||
"addResourcesHookSupport": "Add Resources Hook Support",
|
||||
"debugLogTagName": "Debug Log TAG Name (Default is YukiHookAPI)",
|
||||
"enableDebugMode": "Enable Debug Mode",
|
||||
"enableDebugLog": "Enable Debug Log Output",
|
||||
"enableModuleResourcesCache": "Enable Module Resources Cache",
|
||||
"enableModuleStatus": "Enable Module Activate Status Listener",
|
||||
"enableYukiHookDataChannel": "Enable YukiHookDataChannel",
|
||||
"selectScopeAppsOrEnterOnceTip": "Please select the app you need to add to the scope from the list",
|
||||
"customize": "Customize",
|
||||
"systemFramework": "System Framework",
|
||||
@@ -178,8 +176,8 @@ const locale = {
|
||||
"close": "Close",
|
||||
"done": "Done",
|
||||
"later": "Later",
|
||||
"notConfigure": "Not configured",
|
||||
"notConfigureDefYes": "Not configured (Default Yes/Enabled)",
|
||||
"notConfigure": "Not Configured",
|
||||
"notConfigureDefYes": "Not Configured (Default Yes/Enabled)",
|
||||
"yesOfConfigure": "Yes/Enabled",
|
||||
"noOfConfigure": "No/Disabled",
|
||||
"version": "Version",
|
||||
@@ -251,19 +249,17 @@ const locale = {
|
||||
"targetXposedPlatform": "目标 Xposed 平台",
|
||||
"universal": "通用",
|
||||
"nativeXposed": "原生 Xposed",
|
||||
"declarationNewXSharePrefs": "声明 New XShare Prefs (Xposed 最低 API ≥ 93 无需声明)",
|
||||
"useNewXSharedPreferences": "使用 New XSharedPreferences (Xposed 最低 API ≥ 93 无需声明)",
|
||||
"moduleScope": "模块作用域",
|
||||
"addApps": "添加应用",
|
||||
"addNewApp": "添加应用",
|
||||
"entryClassName": "入口类名 (不填使用默认值生成)",
|
||||
"addResourcesHookSupport": "添加 Resources Hook 支持",
|
||||
"debugTagName": "Debug TAG 名称 (不填默认为 YukiHookAPI)",
|
||||
"debugLogTagName": "调试日志 TAG 名称 (不填默认为 YukiHookAPI)",
|
||||
"enableDebugMode": "启用 Debug 模式",
|
||||
"enablePrintLogcat": "启用调试日志输出功能",
|
||||
"enableYukiHookModulePrefsCache": "启用 YukiHookModulePrefs 键值缓存功能",
|
||||
"enableDebugLog": "启用调试日志输出功能",
|
||||
"enableModuleResourcesCache": "启用模块 Resources 缓存功能",
|
||||
"enableModuleStatus": "启用模块激活状态监听功能",
|
||||
"enableYukiHookDataChannel": "启用 YukiHookDataChannel 功能",
|
||||
"enableMemberCache": "启用已查询的反射类、方法、变量缓存功能",
|
||||
"selectScopeAppsOrEnterOnceTip": "请从下面的列表中选择你需要添加到作用域中的应用",
|
||||
"customize": "自定义",
|
||||
"systemFramework": "系统框架",
|
||||
@@ -386,19 +382,17 @@ const locale = {
|
||||
"targetXposedPlatform": "ターゲットXposedプラットフォーム",
|
||||
"universal": "ユニバーサル",
|
||||
"nativeXposed": "ネイティブXposed",
|
||||
"declarationNewXSharePrefs": "宣言新しいXShare設定(Xposed最小API≥93宣言は不要)",
|
||||
"useNewXSharedPreferences": "使い New XSharedPreferences (Xposed 最小 API ≥ 93 使いない)",
|
||||
"moduleScope": "モジュールスコープ",
|
||||
"addApps": "アプリを追加",
|
||||
"addNewApp": "アプリを追加",
|
||||
"entryClassName": "エントリクラス名(デフォルトを使用するには空)",
|
||||
"addResourcesHookSupport": "リソースフックのサポートを追加",
|
||||
"debugTagName": "デバッグタグ名(デフォルトはYukiHookAPI)",
|
||||
"debugLogTagName": "デバッググロタグ名(デフォルトはYukiHookAPI)",
|
||||
"enableDebugMode": "デバッグモードを有効にする",
|
||||
"enablePrintLogcat": "デバッグログ出力を有効にする",
|
||||
"enableYukiHookModulePrefsCache": "YukiHookModulePrefsのKey-Valueキャッシングを有効にする",
|
||||
"enableDebugLog": "デバッグログ出力を有効にする",
|
||||
"enableModuleResourcesCache": "モジュールリソースのキャッシュを有効にする",
|
||||
"enableModuleStatus": "モジュールのアクティブ化ステータスの監視を有効にする",
|
||||
"enableYukiHookDataChannel": "YukiHookDataChannel機能を有効にする",
|
||||
"enableMemberCache": "クエリされたリフレクションクラス、メソッド、変数キャッシングを有効にする",
|
||||
"selectScopeAppsOrEnterOnceTip": "以下のリストからスコープに追加するアプリを選択してください",
|
||||
"customize": "カスタマイズ",
|
||||
"systemFramework": "システムフレームワーク",
|
||||
|
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* YukiHookAPI Project Builder - A Xposed Project Builder by YukiHookAPI.
|
||||
* Copyright (C) 2019-2022 HighCapable
|
||||
* Copyright (C) 2019-2023 HighCapable
|
||||
* https://github.com/fankes/YukiHookAPI-ProjectBuilder
|
||||
*
|
||||
* This software is non-free but opensource software: you can redistribute it
|
||||
|
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* YukiHookAPI Project Builder - A Xposed Project Builder by YukiHookAPI.
|
||||
* Copyright (C) 2019-2022 HighCapable
|
||||
* Copyright (C) 2019-2023 HighCapable
|
||||
* https://github.com/fankes/YukiHookAPI-ProjectBuilder
|
||||
*
|
||||
* This software is non-free but opensource software: you can redistribute it
|
||||
|
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* YukiHookAPI Project Builder - A Xposed Project Builder by YukiHookAPI.
|
||||
* Copyright (C) 2019-2022 HighCapable
|
||||
* Copyright (C) 2019-2023 HighCapable
|
||||
* https://github.com/fankes/YukiHookAPI-ProjectBuilder
|
||||
*
|
||||
* This software is non-free but opensource software: you can redistribute it
|
||||
|
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* YukiHookAPI Project Builder - A Xposed Project Builder by YukiHookAPI.
|
||||
* Copyright (C) 2019-2022 HighCapable
|
||||
* Copyright (C) 2019-2023 HighCapable
|
||||
* https://github.com/fankes/YukiHookAPI-ProjectBuilder
|
||||
*
|
||||
* This software is non-free but opensource software: you can redistribute it
|
||||
@@ -150,19 +150,19 @@ const transaction = {
|
||||
type: 'implementation',
|
||||
groupId: 'androidx.core',
|
||||
artifactId: 'core-ktx',
|
||||
version: '1.8.0'
|
||||
version: '1.10.0'
|
||||
},
|
||||
appcompat: {
|
||||
type: 'implementation',
|
||||
groupId: 'androidx.appcompat',
|
||||
artifactId: 'appcompat',
|
||||
version: '1.4.2'
|
||||
version: '1.6.1'
|
||||
},
|
||||
material: {
|
||||
type: 'implementation',
|
||||
groupId: 'com.google.android.material',
|
||||
artifactId: 'material',
|
||||
version: '1.6.1'
|
||||
version: '1.8.0'
|
||||
},
|
||||
constraintlayout: {
|
||||
type: 'implementation',
|
||||
@@ -180,13 +180,13 @@ const transaction = {
|
||||
type: 'androidTestImplementation',
|
||||
groupId: 'androidx.test.ext',
|
||||
artifactId: 'junit',
|
||||
version: '1.1.3'
|
||||
version: '1.1.5'
|
||||
},
|
||||
androidxTestEspresso: {
|
||||
type: 'androidTestImplementation',
|
||||
groupId: 'androidx.test.espresso',
|
||||
artifactId: 'espresso-core',
|
||||
version: '3.4.0'
|
||||
version: '3.5.1'
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -210,14 +210,14 @@ const transaction = {
|
||||
supportResourcesHook: (isEnabled) => 'isUsingResourcesHook = ' + (isEnabled ? 'true' : 'false')
|
||||
},
|
||||
configs: {
|
||||
debugTagName: (name) => 'debugTag = "' + name + '"',
|
||||
debugLog: {
|
||||
tagName: (name) => 'tag = "' + name + '"',
|
||||
enable: (isEnabled) => 'isEnable = ' + (isEnabled ? 'true' : 'false')
|
||||
},
|
||||
enableDebug: (isEnabled) => 'isDebug = ' + (isEnabled ? 'true' : 'false'),
|
||||
enablePrintLogcat: (isEnabled) => 'isAllowPrintingLogs = ' + (isEnabled ? 'true' : 'false'),
|
||||
enableYPrefsCache: (isEnabled) => 'isEnableModulePrefsCache = ' + (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': {
|
||||
@@ -331,18 +331,23 @@ const transaction = {
|
||||
hookEntryAnnotationCode.trim().substring(0, hookEntryAnnotationCode.trim().lastIndexOf(',')) :
|
||||
hookEntryAnnotationCode.trim()) + ')';
|
||||
let hookEntryConfigsCode = '';
|
||||
if (configs.yukiHookApiConfig.debugTagName !== '')
|
||||
hookEntryConfigsCode = codeFiles.append(hookEntryConfigsCode,
|
||||
codeFiles['HookEntry.kt'].configs.debugTagName(configs.yukiHookApiConfig.debugTagName));
|
||||
if (configs.yukiHookApiConfig.debugLogTagName !== '' || configs.yukiHookApiConfig.enableDebugLog !== 0) {
|
||||
hookEntryConfigsCode += 'debugLog {\n';
|
||||
hookEntryConfigsCode += codeFiles.space(12);
|
||||
if (configs.yukiHookApiConfig.debugLogTagName !== '') {
|
||||
hookEntryConfigsCode = codeFiles.append(hookEntryConfigsCode,
|
||||
codeFiles['HookEntry.kt'].configs.debugLog.tagName(configs.yukiHookApiConfig.debugLogTagName));
|
||||
if (configs.yukiHookApiConfig.enableDebugLog !== 0) hookEntryConfigsCode += codeFiles.space(4);
|
||||
}
|
||||
if (configs.yukiHookApiConfig.enableDebugLog !== 0)
|
||||
hookEntryConfigsCode = codeFiles.append(hookEntryConfigsCode,
|
||||
codeFiles['HookEntry.kt'].configs.debugLog.enable(configs.yukiHookApiConfig.enableDebugLog === 1));
|
||||
hookEntryConfigsCode += '}\n';
|
||||
hookEntryConfigsCode += codeFiles.space(8);
|
||||
}
|
||||
if (configs.yukiHookApiConfig.enableDebug !== 0)
|
||||
hookEntryConfigsCode = codeFiles.append(hookEntryConfigsCode,
|
||||
codeFiles['HookEntry.kt'].configs.enableDebug(configs.yukiHookApiConfig.enableDebug === 1));
|
||||
if (configs.yukiHookApiConfig.enablePrintLogcat !== 0)
|
||||
hookEntryConfigsCode = codeFiles.append(hookEntryConfigsCode,
|
||||
codeFiles['HookEntry.kt'].configs.enablePrintLogcat(configs.yukiHookApiConfig.enablePrintLogcat === 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));
|
||||
@@ -352,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