Skip to content

Commit

Permalink
docs: declare snapshot version is valid on readme doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacksgong committed May 12, 2018
1 parent 93f46d1 commit 38274e4
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

[![Download][bintray_svg]][bintray_link]
[![Build Status][build_status_svg]][build_status_link]
[![](https://img.shields.io/badge/SnapShot-1.6.2-white.svg)](https://oss.sonatype.org/content/repositories/snapshots/cn/dreamtobe/kpswitch/)

> [中文文档](https://github.com/Jacksgong/JKeyboardPanelSwitch/blob/master/README_zh.md)
Expand Down Expand Up @@ -34,6 +35,15 @@ JKeyboardPanelSwitch is installed by adding the following dependency to your `bu
compile 'cn.dreamtobe.kpswitch:library:1.6.1'
```

If you want to import snapshot version, We have already publish the snapshot version to [the sonatype](https://oss.sonatype.org/content/repositories/snapshots/cn/dreamtobe/kpswitch/) so you can import snapshot version after declare the following repository:
```groovy
allprojects {
repositories {
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
}
}
```

## USAGE

> Recommend `clone` the `demo` project and run it, I has already cover cases as much as possible in the demo project.
Expand Down
11 changes: 11 additions & 0 deletions README_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

[![Download][bintray_svg]][bintray_link]
[![Build Status][build_status_svg]][build_status_link]
[![](https://img.shields.io/badge/SnapShot-1.6.2-white.svg)](https://oss.sonatype.org/content/repositories/snapshots/cn/dreamtobe/kpswitch/)

> [README DOC](https://github.com/Jacksgong/JKeyboardPanelSwitch/blob/master/README.md)
Expand Down Expand Up @@ -35,6 +36,16 @@
compile 'cn.dreamtobe.kpswitch:library:1.6.1'
```

如果你希望引入SNAPSHOT版本,我们也有将SNAPSHOT版本推送到[SONATYPE的仓库](https://oss.sonatype.org/content/repositories/snapshots/cn/dreamtobe/kpswitch/),因此你可以通过申明下面参库以引入SNAPSHOT版本:

```groovy
allprojects {
repositories {
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
}
}
```

## 使用引导

> 可以考虑`clone`下来跑下项目中的`demo`,已经用尽量简洁的代码尽量覆盖所有Case了。
Expand Down

0 comments on commit 38274e4

Please sign in to comment.