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

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.

主站蜘蛛池模板: 厦门市| 永胜县| 大关县| 壶关县| 马尔康县| 盐城市| 镇安县| 饶河县| 潼南县| 克东县| 福贡县| 寻甸| 绥宁县| 文成县| 彭山县| 尚志市| 诸暨市| 丹巴县| 山丹县| 抚宁县| 鹿泉市| 壤塘县| 蒙山县| 锦屏县| 民勤县| 汤原县| 涞水县| 左贡县| 马龙县| 青海省| 罗定市| 泸州市| 理塘县| 邹城市| 延吉市| 斗六市| 淳安县| 富蕴县| 岳阳市| 时尚| 柳州市|