From 892527db9e8e598dc7ac8ea82268ad4e33f0ab33 Mon Sep 17 00:00:00 2001 From: bennyhuo Date: Fri, 25 Aug 2023 16:22:35 +0800 Subject: [PATCH] Update README. --- README.md | 21 ++++++++++++++++++++- README_zh.md | 25 ++++++++++++++++++++++--- 2 files changed, 42 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index f2ebfea..53578fa 100644 --- a/README.md +++ b/README.md @@ -38,6 +38,25 @@ pluginManagement { } ```` +If you want to try the snapshots, add the snapshot repository: + +```kotlin +buildscript { + // for plugins + repositories { + maven("https://s01.oss.sonatype.org/content/repositories/snapshots") + } + ... +} + +// for project dependencies +allprojects { + repositories { + maven("https://s01.oss.sonatype.org/content/repositories/snapshots") + } +} +``` + ### 2. Apply the plugin Remove the `kotlin-android-extensions` plugin and add the following code @@ -71,7 +90,7 @@ The Kace currently supports the above four most commonly used types. Other types |--------------|---------------|-------|--------| | 1.7.0-1.0.4 | 1.7.0 | 4.2.0 | 6.7.1 | | 1.8.0-1.0.4 | 1.8.0~1.8.10 | 4.2.0 | 6.8.3 | -| 1.8.20-1.0.4 | 1.8.20 | 4.2.0 | 6.8.3 | +| 1.8.20-1.2.0 | 1.8.20 | 4.2.0 | 6.8.3 | Since the goal of the Kace is to help developers easily upgrade to Kotlin 1.8, the minimum supported version of Kotlin is relatively high diff --git a/README_zh.md b/README_zh.md index bcb044c..47de7ed 100644 --- a/README_zh.md +++ b/README_zh.md @@ -38,6 +38,25 @@ pluginManagement { } ``` +如果你想要尝试 SNAPSHOT 版本,你需要在工程中配置 SNAPSHOT 仓库: + +```kotlin +buildscript { + // for plugins + repositories { + maven("https://s01.oss.sonatype.org/content/repositories/snapshots") + } + ... +} + +// for project dependencies +allprojects { + repositories { + maven("https://s01.oss.sonatype.org/content/repositories/snapshots") + } +} +``` + ### 2. 应用插件 移除`kotlin-android-extensions`插件,并添加以下代码 @@ -67,11 +86,11 @@ kace { Kace 目前支持了以上四种最常用的类型,其他 kotlin-android-extensions 支持的类型如 android.app.Fragment, android.app.Dialog, kotlinx.android.extensions.LayoutContainer 等,由于被废弃或者使用较少,Kace 目前没有做支持 ## 版本兼容 -| Kace | Kotlin | AGP | Gradle | -|----------------------|--------|-------|--------| +| Kace | Kotlin | AGP | Gradle | +|--------------|--------|-------|--------| | 1.7.0-1.0.4 | 1.7.0 | 4.2.0 | 6.7.1 | | 1.8.0-1.0.4 | 1.8.0~1.8.10 | 4.2.0 | 6.8.3 | -| 1.8.20-1.0.4 | 1.8.20 | 4.2.0 | 6.8.3 | +| 1.8.20-1.2.0 | 1.8.20 | 4.2.0 | 6.8.3 | 由于 Kace 的目标是帮助开发者更方便地迁移到 Kotlin 1.8,因此 Kotlin 最低支持版本比较高