Skip to content

Commit

Permalink
Merge pull request #49 from kanyun-inc/feature/update-readme
Browse files Browse the repository at this point in the history
Update README.
  • Loading branch information
RicardoJiang authored Aug 25, 2023
2 parents 99c9b2e + 892527d commit ad6f128
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 4 deletions.
21 changes: 20 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand Down
25 changes: 22 additions & 3 deletions README_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`插件,并添加以下代码

Expand Down Expand Up @@ -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 最低支持版本比较高

Expand Down

0 comments on commit ad6f128

Please sign in to comment.