# yukihook-core



This is the core dependency of YukiHook, you need to add this module to use the basic features of YukiHook.
## Configure Dependency
You can add this module to your project using the following method.
We recommend that you refer to [yukihook-bom](./yukihook-bom.md) first to manage versions with BOM.
### Version Catalog (Recommended)
Add dependency in your project's `gradle/libs.versions.toml`.
```toml
[versions]
yukihook-core = ""
[libraries]
yukihook-core = { module = "com.highcapable.yukihookapi:yukihook-core", version.ref = "yukihook-core" }
```
Configure dependency in your project's `build.gradle.kts`.
```kotlin
implementation(libs.yukihook.core)
```
Please change `` to the version displayed at the top of this document.
### Traditional Method
Configure dependency in your project's `build.gradle.kts`.
```kotlin
implementation("com.highcapable.yukihookapi:yukihook-core:")
```
Please change `` to the version displayed at the top of this document.
::: danger
This module does not work alone. To use it as an Xposed module, you also need to add [yukihook-compiler](./yukihook-compiler.md) and one [base module](../guide/quick-start.md#choose-a-base-module).
:::
## Function Introduction
You can view the KDoc [click here](kdoc://yukihook-core).
This module provides all public APIs of YukiHook, and these APIs are used in exactly the same way on the base modules. Some APIs are only available in a specific base module or Xposed API version, they are marked with the `@RequiresRuntime` annotation.
Click a feature below to view its detailed usage.
- [Module Entry](./yukihook-core/hook-entry.md)
- [Hook Usage](./yukihook-core/hook-usage.md)
- [Debug Logs](./yukihook-core/logger.md)
- [Module Status](./yukihook-core/module-status.md)
- [Module Preferences](./yukihook-core/preferences.md)
- [Module Shared Files](./yukihook-core/shared-files.md)
- [Module and Host Channel](./yukihook-core/data-channel.md)
- [Host Lifecycle](./yukihook-core/host-lifecycle.md)
- [Module Resource Injection](./yukihook-core/resource-injection.md)
- [Module Hot Reload](./yukihook-core/hot-reload.md)