From a7f9144c3d4f32abe2e772475a5ceff398110a42 Mon Sep 17 00:00:00 2001 From: fankesyooni Date: Sat, 21 Jan 2023 00:32:05 +0800 Subject: [PATCH] Update version to 1.1.6 --- README-zh-CN.md | 2 +- README.md | 2 +- build.gradle | 2 +- docs-source/src/en/about/changelog.md | 10 +++++++++- docs-source/src/zh-cn/about/changelog.md | 10 +++++++++- .../kotlin/com/highcapable/yukihookapi/YukiHookAPI.kt | 4 ++-- 6 files changed, 23 insertions(+), 7 deletions(-) diff --git a/README-zh-CN.md b/README-zh-CN.md index d71534bf..bf76b839 100644 --- a/README-zh-CN.md +++ b/README-zh-CN.md @@ -1,7 +1,7 @@ # Yuki Hook API ![Blank](https://img.shields.io/badge/license-MIT-blue) -![Blank](https://img.shields.io/badge/version-v1.1.5-green) +![Blank](https://img.shields.io/badge/version-v1.1.6-green) [![Telegram](https://img.shields.io/badge/Follow-Telegram-blue.svg?logo=telegram)](https://t.me/YukiHookAPI)

diff --git a/README.md b/README.md index 7b47a260..14fcb32c 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Yuki Hook API ![Blank](https://img.shields.io/badge/license-MIT-blue) -![Blank](https://img.shields.io/badge/version-v1.1.5-green) +![Blank](https://img.shields.io/badge/version-v1.1.6-green) [![Telegram](https://img.shields.io/badge/Follow-Telegram-blue.svg?logo=telegram)](https://t.me/YukiHookAPI)

diff --git a/build.gradle b/build.gradle index b8273fc0..91b5b3df 100644 --- a/build.gradle +++ b/build.gradle @@ -10,7 +10,7 @@ ext { devUser = "fankesyooni" userEmail = "qzmmcn@163.com" groupId = "com.highcapable.yukihookapi" - apiVersion = "1.1.5" + apiVersion = "1.1.6" repoName = "YukiHookAPI" repoDescription = "An efficient Hook API and Xposed Module solution built in Kotlin." licenceName = "MIT License" diff --git a/docs-source/src/en/about/changelog.md b/docs-source/src/en/about/changelog.md index c6560e7d..33a5edbc 100644 --- a/docs-source/src/en/about/changelog.md +++ b/docs-source/src/en/about/changelog.md @@ -16,7 +16,15 @@ Time zone of version release date: **UTC+8** ::: -### 1.1.5 | 2023.01.13   +### 1.1.6 | 2023.01.21   + +- Fixed the serious problem that `ClassLoader` does not match after `PackageParam` keeps a single instance when there may be multiple package names in the same process when Xposed Module is loaded +- When the package name is not distinguished when there are multiple package names in the same process, stop loading the singleton child Hooker and print a warning message +- Fixed the problem that the number of parameters is incorrect when methods such as `HookParam.callOriginal`, `HookParam.invokeOriginal` call the original method +- Modify the method parameter name `param` of reflection calls in `MethodFinder`, `ConstructorFinder`, `ReflectionFactory` to `args` +- Added the function of judging the parameters of the entry class constructor in the automatic processing program of the Xposed Module, the entry class needs to ensure that it does not have any constructor parameters + +### 1.1.5 | 2023.01.13   - Standardize and optimize the overall code style - Privatized some APIs called internally diff --git a/docs-source/src/zh-cn/about/changelog.md b/docs-source/src/zh-cn/about/changelog.md index 776d9733..6e318272 100644 --- a/docs-source/src/zh-cn/about/changelog.md +++ b/docs-source/src/zh-cn/about/changelog.md @@ -8,7 +8,15 @@ ::: -### 1.1.5 | 2023.01.13   +### 1.1.6 | 2023.01.21   + +- 修复 Xposed 模块装载时可能存在同一个进程多个包名的情况导致 `PackageParam` 保持单例后 `ClassLoader` 不符的严重问题 +- 新增同一个进程多个包名的情况下未区分包名时,停止装载单例化的子 Hooker 并打印警告信息 +- 修复 `HookParam.callOriginal`、`HookParam.invokeOriginal` 等方法调用原始方法时参数个数不正确的问题 +- 修改 `MethodFinder`、`ConstructorFinder`、`ReflectionFactory` 中反射调用的方法参数名 `param` 为 `args` +- 新增 Xposed 模块自动处理程序中判断入口类构造方法参数功能,入口类需要保证其不存在任何构造方法参数 + +### 1.1.5 | 2023.01.13   - 规范并优化整体代码风格 - 对部分内部调用的 API 进行了私有化处理 diff --git a/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/YukiHookAPI.kt b/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/YukiHookAPI.kt index b70bdf79..f995a866 100644 --- a/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/YukiHookAPI.kt +++ b/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/YukiHookAPI.kt @@ -80,10 +80,10 @@ object YukiHookAPI { internal var isLoadedFromBaseContext = false /** 获取当前 [YukiHookAPI] 的版本 */ - const val API_VERSION_NAME = "1.1.5" + const val API_VERSION_NAME = "1.1.6" /** 获取当前 [YukiHookAPI] 的版本号 */ - const val API_VERSION_CODE = 39 + const val API_VERSION_CODE = 40 /** * 当前 [YukiHookAPI] 的状态