style: use "2.0.0" instead "2.x.x"

This commit is contained in:
2023-10-07 16:42:56 +08:00
parent 6d82c28081
commit 8f523d470d
11 changed files with 58 additions and 58 deletions

View File

@@ -957,7 +957,7 @@ inline fun BaseFinder.BaseResult.hook(priority: YukiHookPriority, initiate: Yuki
::: warning ::: warning
此功能尚在实验阶段,在 1.x.x 版本将暂定于此,在 2.x.x 版本将完全合并到新 API。 此功能尚在实验阶段,在 **1.x.x** 版本将暂定于此,在 **2.0.0** 版本将完全合并到新 API。
::: :::
@@ -997,7 +997,7 @@ inline fun BaseFinder.BaseResult.hookAll(priority: YukiHookPriority, initiate: Y
::: warning ::: warning
此功能尚在实验阶段,在 1.x.x 版本将暂定于此,在 2.x.x 版本将完全合并到新 API。 此功能尚在实验阶段,在 **1.x.x** 版本将暂定于此,在 **2.0.0** 版本将完全合并到新 API。
::: :::

View File

@@ -201,7 +201,7 @@ Please note that the more the same type **Class** is matched, the slower the spe
::: danger ::: danger
After **YukiHookAPI** 2.x.x released, this function will be deprecated and will no longer be migrated to [YukiReflection](https://github.com/fankes/YukiReflection). After **YukiHookAPI** **2.0.0** released, this function will be deprecated and will no longer be migrated to [YukiReflection](https://github.com/fankes/YukiReflection).
We welcome all developers to start using [DexKit](https://github.com/LuckyPray/DexKit), which is a high-performance runtime parsing library for **Dex** implemented in C++, which is more efficient than the Java layer in terms of performance, efficient and excellent, it is still in the development stage, your valuable suggestions are welcome. We welcome all developers to start using [DexKit](https://github.com/LuckyPray/DexKit), which is a high-performance runtime parsing library for **Dex** implemented in C++, which is more efficient than the Java layer in terms of performance, efficient and excellent, it is still in the development stage, your valuable suggestions are welcome.

View File

@@ -58,7 +58,7 @@ TargetClass.hook {
} }
} }
} }
// Resources Hook (2.x.x will be discontinued) // Resources Hook (2.0.0 will be discontinued)
resources().hook { resources().hook {
injectResource { injectResource {
conditions { conditions {
@@ -265,7 +265,7 @@ loadSystem {
::: warning ::: warning
This feature will be discontinued and removed in version 2.x.x. This feature will be discontinued and removed in version **2.0.0**.
::: :::

View File

@@ -4,22 +4,22 @@ The following are the related functions, Xposed Frameworks, Hook Frameworks and
> Basic Functions > Basic Functions
| Name | ST | Description | | Name | ST | Description |
| -------------------------- | --- | ---------------------------------------------------------------------------------------------------------------- | | -------------------------- | --- | ------------------------------------------------------------------------------------------------------------------ |
| Xposed Module Auto Builder | ✅ | Will use [New Xposed Module Config Plan](https://github.com/fankes/YukiHookAPI/issues/49) on `YukiHookAPI` 2.x.x | | Xposed Module Auto Builder | ✅ | Will use [New Xposed Module Config Plan](https://github.com/fankes/YukiHookAPI/issues/49) on `YukiHookAPI` `2.0.0` |
| ART Dynamic Method Hook | ✅ | Stable use in multiple scenarios | | ART Dynamic Method Hook | ✅ | Stable use in multiple scenarios |
| Xposed Resources Hook | ❗ | Supported, but will be deprecated on `YukiHookAPI` 2.x.x | | Xposed Resources Hook | ❗ | Supported, but will be deprecated on `YukiHookAPI` `2.0.0` |
> Extended Functions > Extended Functions
| Name | ST | Description | | Name | ST | Description |
| -------------------------------------------------------------------------------------------------- | --- | ---------------------------------------------------------------------------------------------------- | | -------------------------------------------------------------------------------------------------- | --- | ------------------------------------------------------------------------------------------------------ |
| [Reflection Extensions](../api/special-features/reflection) | ⭕ | Will be merge into [YukiReflection](https://github.com/fankes/YukiReflection) on `YukiHookAPI` 2.x.x | | [Reflection Extensions](../api/special-features/reflection) | ⭕ | Will be merge into [YukiReflection](https://github.com/fankes/YukiReflection) on `YukiHookAPI` `2.0.0` |
| [Xposed Module Data Storage](../api/special-features/xposed-storage) | ✅ | Normal use | | [Xposed Module Data Storage](../api/special-features/xposed-storage) | ✅ | Normal use |
| [Xposed Module and Host Channel](../api/special-features/xposed-channel) | ✅ | Normal use | | [Xposed Module and Host Channel](../api/special-features/xposed-channel) | ✅ | Normal use |
| [Host Lifecycle Extension](../api/special-features/host-lifecycle) | ✅ | Normal use | | [Host Lifecycle Extension](../api/special-features/host-lifecycle) | ✅ | Normal use |
| [Inject Module Apps Resources](../api/special-features/host-inject#inject-module-apps-resources) | ✅ | Normal use | | [Inject Module Apps Resources](../api/special-features/host-inject#inject-module-apps-resources) | ✅ | Normal use |
| [Register Module Apps Activity](../api/special-features/host-inject#register-module-apps-activity) | ✅ | Normal use | | [Register Module Apps Activity](../api/special-features/host-inject#register-module-apps-activity) | ✅ | Normal use |
> Xposed Frameworks > Xposed Frameworks
@@ -45,7 +45,7 @@ The following are the related functions, Xposed Frameworks, Hook Frameworks and
> Hook APIs > Hook APIs
| Name | ST | Description | | Name | ST | Description |
| ------------------------------------------------- | --- | ---------------------------------------- | | ------------------------------------------------- | --- | ------------------------------------------ |
| [Rovo89 Xposed API](https://api.xposed.info/) | ✅ | Stable use in multiple scenarios | | [Rovo89 Xposed API](https://api.xposed.info/) | ✅ | Stable use in multiple scenarios |
| [Modern Xposed API](https://github.com/libxposed) | ❎ | Will be supported on `YukiHookAPI` 2.x.x | | [Modern Xposed API](https://github.com/libxposed) | ❎ | Will be supported on `YukiHookAPI` `2.0.0` |

View File

@@ -945,7 +945,7 @@ inline fun BaseFinder.BaseResult.hook(priority: YukiHookPriority, initiate: Yuki
::: warning ::: warning
此功能尚在实验阶段,在 1.x.x 版本将暂定于此,在 2.x.x 版本将完全合并到新 API。 此功能尚在实验阶段,在 **1.x.x** 版本将暂定于此,在 **2.0.0** 版本将完全合并到新 API。
::: :::
@@ -985,7 +985,7 @@ inline fun BaseFinder.BaseResult.hookAll(priority: YukiHookPriority, initiate: Y
::: warning ::: warning
此功能尚在实验阶段,在 1.x.x 版本将暂定于此,在 2.x.x 版本将完全合并到新 API。 此功能尚在实验阶段,在 **1.x.x** 版本将暂定于此,在 **2.0.0** 版本将完全合并到新 API。
::: :::

View File

@@ -183,7 +183,7 @@ var isExist = "com.demo.Test".hasClass(customClassLoader)
::: danger ::: danger
**YukiHookAPI** 发布 2.x.x 版本后,此功能将被标记为作废,且不再会迁移到 [YukiReflection](https://github.com/fankes/YukiReflection)。 **YukiHookAPI** 发布 **2.0.0** 版本后,此功能将被标记为作废,且不再会迁移到 [YukiReflection](https://github.com/fankes/YukiReflection)。
我们欢迎各位开发者开始使用 [DexKit](https://github.com/LuckyPray/DexKit),它是一个使用 C++ 实现的 **Dex** 高性能运行时解析库,在性能方面比 Java 层更加高效与优秀,目前尚在开发阶段,欢迎提出宝贵建议。 我们欢迎各位开发者开始使用 [DexKit](https://github.com/LuckyPray/DexKit),它是一个使用 C++ 实现的 **Dex** 高性能运行时解析库,在性能方面比 Java 层更加高效与优秀,目前尚在开发阶段,欢迎提出宝贵建议。

View File

@@ -58,7 +58,7 @@ TargetClass.hook {
} }
} }
} }
// Resources Hook (2.x.x 将停止支持) // Resources Hook (2.0.0 将停止支持)
resources().hook { resources().hook {
injectResource { injectResource {
conditions { conditions {
@@ -265,7 +265,7 @@ loadSystem {
::: warning ::: warning
此功能将在 2.x.x 版本停止支持并移除。 此功能将在 **2.0.0** 版本停止支持并移除。
::: :::

View File

@@ -4,22 +4,22 @@
> 基本功能 > 基本功能
| Name | ST | Description | | Name | ST | Description |
| -------------------------------- | --- | ------------------------------------------------------------------------------------------------------------- | | -------------------------------- | --- | --------------------------------------------------------------------------------------------------------------- |
| 自动化 Xposed 模块构建 | ✅ | 计划 `YukiHookAPI` 2.x.x 版本使用 [新的 Xposed 模块配置方案](https://github.com/fankes/YukiHookAPI/issues/49) | | 自动化 Xposed 模块构建 | ✅ | 计划 `YukiHookAPI` `2.0.0` 版本使用 [新的 Xposed 模块配置方案](https://github.com/fankes/YukiHookAPI/issues/49) |
| ART 动态方法 Hook | ✅ | 多场景下稳定使用 | | ART 动态方法 Hook | ✅ | 多场景下稳定使用 |
| Xposed 资源钩子 (Resources Hook) | ❗ | 支持,但计划 `YukiHookAPI` 2.x.x 版本作废 | | Xposed 资源钩子 (Resources Hook) | ❗ | 支持,但计划 `YukiHookAPI` `2.0.0` 版本作废 |
> 扩展功能 > 扩展功能
| Name | ST | Description | | Name | ST | Description |
| -------------------------------------------------------------------------------------- | --- | ---------------------------------------------------------------------------------------------- | | -------------------------------------------------------------------------------------- | --- | ------------------------------------------------------------------------------------------------ |
| [字节码与反射扩展](../api/special-features/reflection) | ⭕ | 计划 `YukiHookAPI` 2.x.x 版本合并到 [YukiReflection](https://github.com/fankes/YukiReflection) | | [字节码与反射扩展](../api/special-features/reflection) | ⭕ | 计划 `YukiHookAPI` `2.0.0` 版本合并到 [YukiReflection](https://github.com/fankes/YukiReflection) |
| [Xposed 模块数据存储](../api/special-features/xposed-storage) | ✅ | 正常使用 | | [Xposed 模块数据存储](../api/special-features/xposed-storage) | ✅ | 正常使用 |
| [Xposed 模块与宿主通讯桥](../api/special-features/xposed-channel) | ✅ | 正常使用 | | [Xposed 模块与宿主通讯桥](../api/special-features/xposed-channel) | ✅ | 正常使用 |
| [宿主生命周期扩展](../api/special-features/host-lifecycle) | ✅ | 正常使用 | | [宿主生命周期扩展](../api/special-features/host-lifecycle) | ✅ | 正常使用 |
| [注入模块资源 (Resources)](../api/special-features/host-inject#注入模块资源-resources) | ✅ | 正常使用 | | [注入模块资源 (Resources)](../api/special-features/host-inject#注入模块资源-resources) | ✅ | 正常使用 |
| [注册模块 Activity](../api/special-features/host-inject#注册模块-activity) | ✅ | 正常使用 | | [注册模块 Activity](../api/special-features/host-inject#注册模块-activity) | ✅ | 正常使用 |
> Xposed 框架 > Xposed 框架
@@ -45,7 +45,7 @@
> Hook APIs > Hook APIs
| Name | ST | Description | | Name | ST | Description |
| ------------------------------------------------- | --- | --------------------------------- | | ------------------------------------------------- | --- | ----------------------------------- |
| [Rovo89 Xposed API](https://api.xposed.info/) | ✅ | 多场景下稳定使用 | | [Rovo89 Xposed API](https://api.xposed.info/) | ✅ | 多场景下稳定使用 |
| [Modern Xposed API](https://github.com/libxposed) | ❎ | 计划 `YukiHookAPI` 2.x.x 版本支持 | | [Modern Xposed API](https://github.com/libxposed) | ❎ | 计划 `YukiHookAPI` `2.0.0` 版本支持 |

View File

@@ -27,7 +27,7 @@
*/ */
package com.highcapable.yukihookapi.hook.core.annotation package com.highcapable.yukihookapi.hook.core.annotation
@RequiresOptIn(message = "这种方式将不再被推荐且将在 2.x.x 版本完全移除,建议迁移到使用 Member 创建 Hook 的新写法", level = RequiresOptIn.Level.WARNING) @RequiresOptIn(message = "这种方式将不再被推荐且将在 2.0.0 版本完全移除,建议迁移到使用 Member 创建 Hook 的新写法", level = RequiresOptIn.Level.WARNING)
@MustBeDocumented @MustBeDocumented
@Target(AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY) @Target(AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY)
@Retention(AnnotationRetention.BINARY) @Retention(AnnotationRetention.BINARY)

View File

@@ -27,7 +27,7 @@
*/ */
package com.highcapable.yukihookapi.hook.core.annotation package com.highcapable.yukihookapi.hook.core.annotation
@RequiresOptIn(message = "Resources Hook 功能将在 2.x.x 版本完全移除 (如果必须使用,你可以继续使用 1.x.x 版本)", level = RequiresOptIn.Level.WARNING) @RequiresOptIn(message = "Resources Hook 功能将在 2.0.0 版本完全移除 (如果必须使用,你可以继续使用 1.x.x 版本)", level = RequiresOptIn.Level.WARNING)
@MustBeDocumented @MustBeDocumented
@Target(AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY) @Target(AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY)
@Retention(AnnotationRetention.BINARY) @Retention(AnnotationRetention.BINARY)

View File

@@ -719,7 +719,7 @@ open class PackageParam internal constructor(internal var wrapper: PackageParamW
/** /**
* 直接 Hook 方法、构造方法 * 直接 Hook 方法、构造方法
* *
* - 此功能尚在实验阶段 - 在 1.x.x 版本将暂定于此 - 在 2.x.x 版本将完全合并到新 API * - 此功能尚在实验阶段 - 在 1.x.x 版本将暂定于此 - 在 2.0.0 版本将完全合并到新 API
* @param priority Hook 优先级 - 默认为 [YukiHookPriority.DEFAULT] * @param priority Hook 优先级 - 默认为 [YukiHookPriority.DEFAULT]
* @return [YukiMemberHookCreator.MemberHookCreator] * @return [YukiMemberHookCreator.MemberHookCreator]
*/ */
@@ -728,7 +728,7 @@ open class PackageParam internal constructor(internal var wrapper: PackageParamW
/** /**
* 直接 Hook 方法、构造方法 * 直接 Hook 方法、构造方法
* *
* - 此功能尚在实验阶段 - 在 1.x.x 版本将暂定于此 - 在 2.x.x 版本将完全合并到新 API * - 此功能尚在实验阶段 - 在 1.x.x 版本将暂定于此 - 在 2.0.0 版本将完全合并到新 API
* @param priority Hook 优先级 - 默认为 [YukiHookPriority.DEFAULT] * @param priority Hook 优先级 - 默认为 [YukiHookPriority.DEFAULT]
* @param initiate 方法体 * @param initiate 方法体
* @return [YukiMemberHookCreator.MemberHookCreator.Result] * @return [YukiMemberHookCreator.MemberHookCreator.Result]
@@ -741,7 +741,7 @@ open class PackageParam internal constructor(internal var wrapper: PackageParamW
/** /**
* 通过 [BaseFinder.BaseResult] 直接 Hook 方法、构造方法 * 通过 [BaseFinder.BaseResult] 直接 Hook 方法、构造方法
* *
* - 此功能尚在实验阶段 - 在 1.x.x 版本将暂定于此 - 在 2.x.x 版本将完全合并到新 API * - 此功能尚在实验阶段 - 在 1.x.x 版本将暂定于此 - 在 2.0.0 版本将完全合并到新 API
* @param priority Hook 优先级 - 默认为 [YukiHookPriority.DEFAULT] * @param priority Hook 优先级 - 默认为 [YukiHookPriority.DEFAULT]
* @return [YukiMemberHookCreator.MemberHookCreator] * @return [YukiMemberHookCreator.MemberHookCreator]
*/ */
@@ -750,7 +750,7 @@ open class PackageParam internal constructor(internal var wrapper: PackageParamW
/** /**
* 通过 [BaseFinder.BaseResult] 直接 Hook 方法、构造方法 * 通过 [BaseFinder.BaseResult] 直接 Hook 方法、构造方法
* *
* - 此功能尚在实验阶段 - 在 1.x.x 版本将暂定于此 - 在 2.x.x 版本将完全合并到新 API * - 此功能尚在实验阶段 - 在 1.x.x 版本将暂定于此 - 在 2.0.0 版本将完全合并到新 API
* @param priority Hook 优先级 - 默认为 [YukiHookPriority.DEFAULT] * @param priority Hook 优先级 - 默认为 [YukiHookPriority.DEFAULT]
* @param initiate 方法体 * @param initiate 方法体
* @return [YukiMemberHookCreator.MemberHookCreator.Result] * @return [YukiMemberHookCreator.MemberHookCreator.Result]
@@ -763,7 +763,7 @@ open class PackageParam internal constructor(internal var wrapper: PackageParamW
/** /**
* 直接 Hook 方法、构造方法 (批量) * 直接 Hook 方法、构造方法 (批量)
* *
* - 此功能尚在实验阶段 - 在 1.x.x 版本将暂定于此 - 在 2.x.x 版本将完全合并到新 API * - 此功能尚在实验阶段 - 在 1.x.x 版本将暂定于此 - 在 2.0.0 版本将完全合并到新 API
* @param priority Hook 优先级 - 默认为 [YukiHookPriority.DEFAULT] * @param priority Hook 优先级 - 默认为 [YukiHookPriority.DEFAULT]
* @return [YukiMemberHookCreator.MemberHookCreator] * @return [YukiMemberHookCreator.MemberHookCreator]
*/ */
@@ -772,7 +772,7 @@ open class PackageParam internal constructor(internal var wrapper: PackageParamW
/** /**
* 直接 Hook 方法、构造方法 (批量) * 直接 Hook 方法、构造方法 (批量)
* *
* - 此功能尚在实验阶段 - 在 1.x.x 版本将暂定于此 - 在 2.x.x 版本将完全合并到新 API * - 此功能尚在实验阶段 - 在 1.x.x 版本将暂定于此 - 在 2.0.0 版本将完全合并到新 API
* @param priority Hook 优先级 - 默认为 [YukiHookPriority.DEFAULT] * @param priority Hook 优先级 - 默认为 [YukiHookPriority.DEFAULT]
* @param initiate 方法体 * @param initiate 方法体
* @return [YukiMemberHookCreator.MemberHookCreator.Result] * @return [YukiMemberHookCreator.MemberHookCreator.Result]
@@ -785,7 +785,7 @@ open class PackageParam internal constructor(internal var wrapper: PackageParamW
/** /**
* 直接 Hook 方法、构造方法 (批量) * 直接 Hook 方法、构造方法 (批量)
* *
* - 此功能尚在实验阶段 - 在 1.x.x 版本将暂定于此 - 在 2.x.x 版本将完全合并到新 API * - 此功能尚在实验阶段 - 在 1.x.x 版本将暂定于此 - 在 2.0.0 版本将完全合并到新 API
* @param priority Hook 优先级 - 默认为 [YukiHookPriority.DEFAULT] * @param priority Hook 优先级 - 默认为 [YukiHookPriority.DEFAULT]
* @return [YukiMemberHookCreator.MemberHookCreator] * @return [YukiMemberHookCreator.MemberHookCreator]
*/ */
@@ -794,7 +794,7 @@ open class PackageParam internal constructor(internal var wrapper: PackageParamW
/** /**
* 直接 Hook 方法、构造方法 (批量) * 直接 Hook 方法、构造方法 (批量)
* *
* - 此功能尚在实验阶段 - 在 1.x.x 版本将暂定于此 - 在 2.x.x 版本将完全合并到新 API * - 此功能尚在实验阶段 - 在 1.x.x 版本将暂定于此 - 在 2.0.0 版本将完全合并到新 API
* @param priority Hook 优先级 - 默认为 [YukiHookPriority.DEFAULT] * @param priority Hook 优先级 - 默认为 [YukiHookPriority.DEFAULT]
* @param initiate 方法体 * @param initiate 方法体
* @return [YukiMemberHookCreator.MemberHookCreator.Result] * @return [YukiMemberHookCreator.MemberHookCreator.Result]
@@ -807,7 +807,7 @@ open class PackageParam internal constructor(internal var wrapper: PackageParamW
/** /**
* 通过 [BaseFinder.BaseResult] 直接 Hook 方法、构造方法 (批量) * 通过 [BaseFinder.BaseResult] 直接 Hook 方法、构造方法 (批量)
* *
* - 此功能尚在实验阶段 - 在 1.x.x 版本将暂定于此 - 在 2.x.x 版本将完全合并到新 API * - 此功能尚在实验阶段 - 在 1.x.x 版本将暂定于此 - 在 2.0.0 版本将完全合并到新 API
* @param priority Hook 优先级 - 默认为 [YukiHookPriority.DEFAULT] * @param priority Hook 优先级 - 默认为 [YukiHookPriority.DEFAULT]
* @return [YukiMemberHookCreator.MemberHookCreator] * @return [YukiMemberHookCreator.MemberHookCreator]
*/ */
@@ -816,7 +816,7 @@ open class PackageParam internal constructor(internal var wrapper: PackageParamW
/** /**
* 通过 [BaseFinder.BaseResult] 直接 Hook 方法、构造方法 (批量) * 通过 [BaseFinder.BaseResult] 直接 Hook 方法、构造方法 (批量)
* *
* - 此功能尚在实验阶段 - 在 1.x.x 版本将暂定于此 - 在 2.x.x 版本将完全合并到新 API * - 此功能尚在实验阶段 - 在 1.x.x 版本将暂定于此 - 在 2.0.0 版本将完全合并到新 API
* @param priority Hook 优先级 - 默认为 [YukiHookPriority.DEFAULT] * @param priority Hook 优先级 - 默认为 [YukiHookPriority.DEFAULT]
* @param initiate 方法体 * @param initiate 方法体
* @return [YukiMemberHookCreator.MemberHookCreator.Result] * @return [YukiMemberHookCreator.MemberHookCreator.Result]
@@ -829,7 +829,7 @@ open class PackageParam internal constructor(internal var wrapper: PackageParamW
/** /**
* 通过 [BaseFinder.BaseResult] 直接 Hook 方法、构造方法 * 通过 [BaseFinder.BaseResult] 直接 Hook 方法、构造方法
* *
* - 此功能尚在实验阶段 - 在 1.x.x 版本将暂定于此 - 在 2.x.x 版本将完全合并到新 API * - 此功能尚在实验阶段 - 在 1.x.x 版本将暂定于此 - 在 2.0.0 版本将完全合并到新 API
* @param isMultiple 是否为多重查找 * @param isMultiple 是否为多重查找
* @param priority Hook 优先级 * @param priority Hook 优先级
* @param isLazyMode 是否为惰性模式 - 默认否 * @param isLazyMode 是否为惰性模式 - 默认否
@@ -855,7 +855,7 @@ open class PackageParam internal constructor(internal var wrapper: PackageParamW
/** /**
* 直接 Hook 方法、构造方法 * 直接 Hook 方法、构造方法
* *
* - 此功能尚在实验阶段 - 在 1.x.x 版本将暂定于此 - 在 2.x.x 版本将完全合并到新 API * - 此功能尚在实验阶段 - 在 1.x.x 版本将暂定于此 - 在 2.0.0 版本将完全合并到新 API
* @param priority Hook 优先级 * @param priority Hook 优先级
* @param isLazyMode 是否为惰性模式 - 默认否 * @param isLazyMode 是否为惰性模式 - 默认否
* @return [YukiMemberHookCreator.MemberHookCreator] * @return [YukiMemberHookCreator.MemberHookCreator]