Skip to content

Commit bb91504

Browse files
committed
docs: add version catalog tutorial
1 parent cc94e32 commit bb91504

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

docs-source/src/en/library/android.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,26 @@ Configure dependency in your project `build.gradle.kts`.
2929
implementation(com.highcapable.pangutext.pangutext.android)
3030
```
3131

32+
### Version Catalog
33+
34+
Add dependency in your project's `gradle/libs.versions.toml`.
35+
36+
```toml
37+
[versions]
38+
pangutext-android = "<version>"
39+
40+
[libraries]
41+
pangutext-android = { module = "com.highcapable.pangutext:pangutext-android", version.ref = "pangutext-android" }
42+
```
43+
44+
Configure dependency in your project `build.gradle.kts`.
45+
46+
```kotlin
47+
implementation(libs.pangutext.android)
48+
```
49+
50+
Please change `<version>` to the version displayed at the top of this document.
51+
3252
### Traditional Method
3353

3454
Configure dependency in your project `build.gradle.kts`.

docs-source/src/zh-cn/library/android.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,26 @@ libraries:
2929
implementation(com.highcapable.pangutext.pangutext.android)
3030
```
3131

32+
### Version Catalog
33+
34+
在你的项目 `gradle/libs.versions.toml` 中添加依赖。
35+
36+
```toml
37+
[versions]
38+
pangutext-android = "<version>"
39+
40+
[libraries]
41+
pangutext-android = { module = "com.highcapable.pangutext:pangutext-android", version.ref = "pangutext-android" }
42+
```
43+
44+
在你的项目 `build.gradle.kts` 中配置依赖。
45+
46+
```kotlin
47+
implementation(libs.pangutext.android)
48+
```
49+
50+
请将 `<version>` 修改为此文档顶部显示的版本。
51+
3252
### 传统方式
3353

3454
在你的项目 `build.gradle.kts` 中配置依赖。

0 commit comments

Comments
 (0)