import{_ as r,r as l,o as p,c,a as e,b as n,d as s,w as i,e as t}from"./app-6WmjFGj_.js";const d={},u=t('
Integrate
PanguText
into 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.
Configure repositories in your project's SweetDependency
configuration file.
repositories:
google:
maven-central:
# (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
highcapable-maven-releases:
url: https://raw.githubusercontent.com/HighCapable/maven-repository/main/repository/releases
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.
`,13),C=e("h2",{id:"demo",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#demo","aria-hidden":"true"},"#"),n(" Demo")],-1),g=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),B={href:"https://github.com/BetterAndroid/PanguText/tree/main/demo-android",target:"_blank",rel:"noopener noreferrer"},f={href:"https://github.com/BetterAndroid/PanguText/tree/main/demo-compose",target:"_blank",rel:"noopener noreferrer"};function _(k,x){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(")")])]),y]),v,b,e("p",null,[n("We recommend using Kotlin DSL as the Gradle build script language and "),e("a",A,[n("SweetDependency"),s(a)]),n(" to manage dependencies.")]),D,e("ul",null,[e("li",null,[s(o,{to:"/en/library/android.html"},{default:i(()=>[n("Android")]),_:1})]),e("li",null,[s(o,{to:"/en/library/compose.html"},{default:i(()=>[n("Jetpack Compose")]),_:1})])]),C,g,e("ul",null,[e("li",null,[e("a",B,[n("Android"),s(a)])]),e("li",null,[e("a",f,[n("Jetpack Compose (Coming soon)"),s(a)])])])])}const F=r(d,[["render",_],["__file","quick-start.html.vue"]]);export{F as default};