From 87928e9af65eaaeb762323106ec5272d0b540920 Mon Sep 17 00:00:00 2001 From: fankesyooni Date: Tue, 26 Sep 2023 05:29:26 +0800 Subject: [PATCH] docs: update guide --- docs/guide-zh-CN.md | 9 +++++++++ docs/guide.md | 11 +++++++++++ 2 files changed, 20 insertions(+) diff --git a/docs/guide-zh-CN.md b/docs/guide-zh-CN.md index bc40484..32300eb 100644 --- a/docs/guide-zh-CN.md +++ b/docs/guide-zh-CN.md @@ -346,6 +346,9 @@ plugins: org.jetbrains.kotlin.android: alias: kotlin-android version: 1.8.10 + com.google.devtools.ksp: + alias: kotlin-ksp + version: 1.8.10-1.0.9 # 配置需要使用的库依赖 libraries: @@ -389,6 +392,12 @@ libraries: # 注意:如果你声明了 "version-ref",此依赖将在自动装配和更新中被排除 # 注意:如果你声明了 "version-ref","auto-update"、"repositories"、"version-filter" 将无效 version-ref: ::core # 或 "androidx.core:core" 以及 "androidx-core" (别名) + com.google.devtools.ksp: + symbol-processing-api: + # 如果你想引用一个不属于当前作用域 ("libraries") 的依赖或别名,你需要声明其所属的作用域 + # 例如引用 "plugins" 作用域中的依赖别名 "kotlin-ksp",你需要使用 "::" 作为开头进行声明 + # 同理,在 "plugins" 作用域中需要使用 "::" 作为开头进行声明 + version-ref: ::kotlin-ksp # 或 "::com.google.devtools.ksp" com.squareup.okhttp3: okhttp: # 如果你在版本中声明了一个 "version-filter" 中存在的版本 (内置过滤器或排除列表) diff --git a/docs/guide.md b/docs/guide.md index 8f8be01..0349af1 100644 --- a/docs/guide.md +++ b/docs/guide.md @@ -368,6 +368,9 @@ plugins: org.jetbrains.kotlin.android: alias: kotlin-android version: 1.8.10 + com.google.devtools.ksp: + alias: kotlin-ksp + version: 1.8.10-1.0.9 # Configure libraries that need to be used libraries: @@ -416,6 +419,14 @@ libraries: # Note: If you declare "version-ref", this dependency will be excluded from autowiring and updating # Note: If you declare "version-ref", "auto-update", "repositories", "version-filter" will not work version-ref: ::core # Or "androidx.core:core" and "androidx-core" (alias) + com.google.devtools.ksp: + symbol-processing-api: + # If you want to reference a dependency or alias that does not belong to the current scope ("libraries"), + # you need to declare the scope it belongs to + # For example, to reference the dependency alias "kotlin-ksp" in the "plugins" scope, + # you need to use "::" as the beginning of the declaration + # Similarly, you need to use "::" as the beginning of the declaration in the "plugins" scope + version-ref: ::kotlin-ksp # Or "::com.google.devtools.ksp" com.squareup.okhttp3: okhttp: # If you declare a version in the version that exists in "version-filter" (internal filter or exclude list)