import{_ as o,r as i,o as t,c as p,b as s,d as n,e as a,a as l}from"./app-Un_zyw_U.js";const r={},c=l('

Quick Start

Integrate YukiReflection into your project.

Environment Requirements

Project Requirements

The project needs to be created using Android Studio or IntelliJ IDEA and the type is an Java or Android project and the Kotlin environment dependency has been integrated.

Integration Dependencies

',7),d={href:"https://github.com/HighCapable/SweetDependency",target:"_blank",rel:"noopener noreferrer"},u=l(`

Add the repositories and dependencies in your project's SweetDependency configuration file.

The following example

repositories:
  # MavenCentral has a 2-hour cache,
  # if the latest version cannot be integrated, please add this
  sonatype-oss-releases:

libraries:
  com.highcapable.yukireflection:
    api:
      version: +
  ...

After adding it, run Gradle Sync and all dependencies will be autowired.

Next, deploy dependencies in your project build.gradle.kts.

The following example

dependencies {
    implementation(com.highcapable.yukireflection.api)
    // ...
}

Traditional Method

Add repositories in your project build.gradle.kts or build.gradle.

Kotlin DSL

repositories {
    google()
    mavenCentral()
    // MavenCentral has a 2-hour cache, if the latest version cannot be integrated, please add this URL
    maven { url("https://s01.oss.sonatype.org/content/repositories/releases/") }
}

Groovy DSL

repositories {
    google()
    mavenCentral()
    // MavenCentral has a 2-hour cache, if the latest version cannot be integrated, please add this URL
    maven { url 'https://s01.oss.sonatype.org/content/repositories/releases/' }
}

Add dependencies in your project build.gradle.kts or build.gradle.

Kotlin DSL

dependencies {
    implementation("com.highcapable.yukireflection:api:<yuki-version>")
    // ...
}

Groovy DSL

dependencies {
    implementation 'com.highcapable.yukireflection:api:<yuki-version>'
    // ...
}

Please change <yuki-version> to the latest version here.

`,20),v={class:"custom-container danger"},y=s("p",{class:"custom-container-title"},"Pay Attention",-1),b={href:"https://github.com/HighCapable/YukiHookAPI",target:"_blank",rel:"noopener noreferrer"},A=s("strong",null,"YukiReflection",-1),m=s("strong",null,"YukiHookAPI",-1),h=s("p",null,"Repeated integration will cause functional conflicts and cause exceptions.",-1),D={href:"https://highcapable.github.io/YukiHookAPI/zh-cn/",target:"_blank",rel:"noopener noreferrer"},g=s("strong",null,"YukiHookAPI",-1),B=s("p",null,[s("strong",null,"YukiHookAPI"),n(" will be completely separated from "),s("strong",null,"YukiReflection"),n(" in version "),s("strong",null,"2.0.0"),n(", by which time you can use it with "),s("strong",null,"YukiHookAPI"),n(" at the same time.")],-1),C=l(`

Configure Java Version

Modify the Java version of Kotlin in your project build.gradle.kts or build.gradle to 17 or above.

Kotlin DSL

android {
    compileOptions {
        sourceCompatibility = JavaVersion.VERSION_17
        targetCompatibility = JavaVersion.VERSION_17
    }
    kotlinOptions {
        jvmTarget = "17"
    }
}

Groovy DSL

android {
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_17
        targetCompatibility JavaVersion.VERSION_17
    }
    kotlinOptions {
        jvmTarget = '17'
    }
}

Notice

Since API 1.0.3, the Java version used by Kotlin defaults to 17, and versions 11 and below are no longer supported.

`,7);function k(f,_){const e=i("ExternalLinkIcon");return t(),p("div",null,[c,s("p",null,[n("We recommend using Kotlin DSL as the Gradle build script language and "),s("a",d,[n("SweetDependency"),a(e)]),n(" to manage dependencies.")]),u,s("div",v,[y,s("p",null,[n("If your project is currently using the 1.x.x version of "),s("a",b,[n("YukiHookAPI"),a(e)]),n(", please do not integrate "),A,n(" repeatedly, because "),m,n(" already includes it functions and there are changes to related functions.")]),h,s("p",null,[n("In this case, you should go to the "),s("a",D,[n("Documentation"),a(e)]),n(" of "),g,n(" view the corresponding usage tutorial.")]),B]),C])}const x=o(r,[["render",k],["__file","quick-start.html.vue"]]);export{x as default};