### Add SDK Implementation Dependency (New Version) Source: https://github.com/peakmain/asmactualcombat/blob/master/README.md Adding the `AsmActualCombat` SDK implementation dependency in the `build.gradle` file for new project setups. This line includes the core library as a project dependency, making its functionalities available. ```Gradle implementation 'com.github.Peakmain:AsmActualCombat:1.1.5' ``` -------------------------------- ### Apply Plugin in Root build.gradle (New Version) Source: https://github.com/peakmain/asmactualcombat/blob/master/README.md Applying the `io.github.peakmain` plugin in the root `build.gradle` file for new project setups. This declaration specifies the plugin ID and version, with `apply false` indicating it will be applied later in specific modules. ```Gradle plugins { //插件依赖和版本 id "io.github.peakmain" version "1.1.4" apply false } ``` -------------------------------- ### Configure ASM Plugin Dependency (Old Version) Source: https://github.com/peakmain/asmactualcombat/blob/master/README.md Instructions for adding the ASM plugin dependency to the root `build.gradle` file in older project setups. This configuration ensures the plugin's repository is accessible and its classpath is correctly defined for use. ```Gradle buildscript { repositories { maven { url "https://plugins.gradle.org/m2/" } } dependencies { classpath "io.github.peakmain:plugin:1.1.4" } } apply plugin: "com.peakmain.plugin" ``` -------------------------------- ### Configure Repositories in settings.gradle (New Version) Source: https://github.com/peakmain/asmactualcombat/blob/master/README.md Configuration for `settings.gradle` in newer Gradle projects, specifying plugin and SDK repositories. This uses `pluginManagement` for plugin dependencies and `dependencyResolutionManagement` for project-level dependencies, ensuring proper repository resolution. ```Gradle pluginManagement { repositories { //插件依赖 maven { url "https://plugins.gradle.org/m2/" } } } dependencyResolutionManagement { repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) repositories { //sdk仓库 maven { url 'https://jitpack.io' } } } ``` -------------------------------- ### Configure monitorPlugin for Privacy Method Handling Source: https://github.com/peakmain/asmactualcombat/blob/master/README.md Configuration block for the `monitorPlugin` in `build.gradle`, allowing customization of privacy method handling. It includes options for setting a whitelist of classes, defining the method replacement status (e.g., `1` for method body replacement), and enabling detailed logging for debugging purposes. ```Gradle monitorPlugin { whiteList = [//设置白名单 "com.peakmain.asmactualcombat.utils.TestUtils", "com.peakmain.plugin" ] methodStatus = 1//1代表方法体替换,其他都是正常情况 enableLog=true//是否开启日志打印,默认不打印 } ``` -------------------------------- ### Add Intercept Event SDK Dependency (Old Version) Source: https://github.com/peakmain/asmactualcombat/blob/master/README.md Steps to add the `AsmActualCombat` SDK dependency using JitPack in older project configurations. This involves first adding the JitPack repository to your project's repositories, then declaring the SDK implementation dependency. ```Gradle allprojects { repositories { ... maven { url 'https://jitpack.io' } } } ``` ```Gradle dependencies { implementation 'com.github.Peakmain:AsmActualCombat:1.1.5' } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.