官术网_书友最值得收藏!

Downloading and setting up RxKotlin

You can download and build RxKotlin from GitHub (https://github.com/ReactiveX/RxKotlin). I do not require any other dependencies. The documentation on the GitHub wiki page is well structured. Here's how you can check out the project from GitHub and run the build:

$ git clone https://github.com/ReactiveX/RxKotlin.git
$ cd RxKotlin/
$ ./gradlew build

You can also use Maven and Gradle, as instructed on the page.

For Gradle, use the following compile dependency:

compile 'io.reactivex.rxjava2:rxkotlin:2.x.y' 

For Maven, use this dependency:

    <dependency> 
      <groupId>io.reactivex.rxjava2</groupId> 
      <artifactId>rxkotlin</artifactId> 
      <version>2.x.y</version> 
    </dependency> 

This book targets RxKotlin 2.x, so remember to use io.reactive.rxjava2 instead of io.reactivex.rxkotlin, as the latter one is for RxKotlin 1.x.

Note that we are using RxKotlin version 2.1.0 for this book.

Now, let's take a look at what RxKotlin is all about. We will begin with something well-known and, gradually, we will get into the secrets of the library.

主站蜘蛛池模板: 石台县| 榕江县| 榆社县| 苏尼特左旗| 新巴尔虎左旗| 曲松县| 抚顺市| 南乐县| 青岛市| 保靖县| 通海县| 永宁县| 内乡县| 金门县| 谷城县| 樟树市| 分宜县| 汤阴县| 防城港市| 交口县| 梨树县| 建德市| 方城县| 安康市| 崇信县| 汉阴县| 三亚市| 明水县| 石嘴山市| 错那县| 宿州市| 海晏县| 赤壁市| 石景山区| 澜沧| 云安县| 大同县| 中牟县| 从化市| 玉门市| 稷山县|