Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README. #49

Merged
merged 1 commit into from
Aug 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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