mirror of
https://github.com/BetterAndroid/PanguText.git
synced 2025-09-01 08:15:21 +08:00
docs: add version catalog tutorial
This commit is contained in:
@@ -29,6 +29,26 @@ Configure dependency in your project `build.gradle.kts`.
|
|||||||
implementation(com.highcapable.pangutext.pangutext.android)
|
implementation(com.highcapable.pangutext.pangutext.android)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Version Catalog
|
||||||
|
|
||||||
|
Add dependency in your project's `gradle/libs.versions.toml`.
|
||||||
|
|
||||||
|
```toml
|
||||||
|
[versions]
|
||||||
|
pangutext-android = "<version>"
|
||||||
|
|
||||||
|
[libraries]
|
||||||
|
pangutext-android = { module = "com.highcapable.pangutext:pangutext-android", version.ref = "pangutext-android" }
|
||||||
|
```
|
||||||
|
|
||||||
|
Configure dependency in your project `build.gradle.kts`.
|
||||||
|
|
||||||
|
```kotlin
|
||||||
|
implementation(libs.pangutext.android)
|
||||||
|
```
|
||||||
|
|
||||||
|
Please change `<version>` to the version displayed at the top of this document.
|
||||||
|
|
||||||
### Traditional Method
|
### Traditional Method
|
||||||
|
|
||||||
Configure dependency in your project `build.gradle.kts`.
|
Configure dependency in your project `build.gradle.kts`.
|
||||||
|
@@ -29,6 +29,26 @@ libraries:
|
|||||||
implementation(com.highcapable.pangutext.pangutext.android)
|
implementation(com.highcapable.pangutext.pangutext.android)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Version Catalog
|
||||||
|
|
||||||
|
在你的项目 `gradle/libs.versions.toml` 中添加依赖。
|
||||||
|
|
||||||
|
```toml
|
||||||
|
[versions]
|
||||||
|
pangutext-android = "<version>"
|
||||||
|
|
||||||
|
[libraries]
|
||||||
|
pangutext-android = { module = "com.highcapable.pangutext:pangutext-android", version.ref = "pangutext-android" }
|
||||||
|
```
|
||||||
|
|
||||||
|
在你的项目 `build.gradle.kts` 中配置依赖。
|
||||||
|
|
||||||
|
```kotlin
|
||||||
|
implementation(libs.pangutext.android)
|
||||||
|
```
|
||||||
|
|
||||||
|
请将 `<version>` 修改为此文档顶部显示的版本。
|
||||||
|
|
||||||
### 传统方式
|
### 传统方式
|
||||||
|
|
||||||
在你的项目 `build.gradle.kts` 中配置依赖。
|
在你的项目 `build.gradle.kts` 中配置依赖。
|
||||||
|
Reference in New Issue
Block a user