import{_ as r,r as l,o as p,c,a as e,b as n,d as s,w as t,e as i}from"./app-feHnNzNt.js";const d={},u=i('
Integrate
PanguTextinto your project.
The project needs to be created using Android Studio or IntelliJ IDEA and be of type Android or Kotlin Multiplatform project with integrated Kotlin environment dependencies.
The dependencies of PanguText are published in Maven Central and our public repository. You can use the following method to configure repositories.
We recommend using Kotlin DSL as the Gradle build script language.
Configure repositories in your project's build.gradle.kts.
repositories {
google()
mavenCentral()
// (Optional) You can add this URL to use our public repository
// When Sonatype-OSS fails and cannot publish dependencies, this repository is added as a backup
// For details, please visit: https://github.com/HighCapable/maven-repository
maven("https://raw.githubusercontent.com/HighCapable/maven-repository/main/repository/releases")
}
Modify the Java version of Kotlin in your project's build.gradle.kts to 17 or above.
Kotlin DSL
android {
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = "17"
}
}
The project is divided into multiple modules: Android platform and Jetpack Compose (multiplatform). You can choose the module you wish to include as a dependency in your project.
Click the corresponding module below to view detailed feature descriptions.
`,12),y=e("h2",{id:"demo",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#demo","aria-hidden":"true"},"#"),n(" Demo")],-1),A=e("p",null,"You can find some examples below. Check out the corresponding demo projects to get a better understanding of how these features work and quickly select the functionality you need.",-1),g={href:"https://github.com/BetterAndroid/PanguText/tree/main/demo-android",target:"_blank",rel:"noopener noreferrer"},C={href:"https://github.com/BetterAndroid/PanguText/tree/main/demo-compose",target:"_blank",rel:"noopener noreferrer"};function f(D,B){const a=l("ExternalLinkIcon"),o=l("RouterLink");return p(),c("div",null,[u,e("ul",null,[e("li",null,[e("p",null,[n("Android Studio (It is recommended to get the latest version from "),e("a",h,[n("here"),s(a)]),n(")")])]),e("li",null,[e("p",null,[n("IntelliJ IDEA (It is recommended to get the latest version from "),e("a",m,[n("here"),s(a)]),n(")")])]),v]),b,e("ul",null,[e("li",null,[s(o,{to:"/en/library/android.html"},{default:t(()=>[n("Android")]),_:1})]),e("li",null,[s(o,{to:"/en/library/compose.html"},{default:t(()=>[n("Jetpack Compose")]),_:1})])]),y,A,e("ul",null,[e("li",null,[e("a",g,[n("Android"),s(a)])]),e("li",null,[e("a",C,[n("Jetpack Compose (Coming soon)"),s(a)])])])])}const k=r(d,[["render",f],["__file","quick-start.html.vue"]]);export{k as default};