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

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.

主站蜘蛛池模板: 静海县| 青田县| 太仓市| 宜宾市| 长武县| 通山县| 陇南市| 阿坝| 民丰县| 吴忠市| 额尔古纳市| 榕江县| 甘肃省| 潼关县| 宣恩县| 宜丰县| 曲水县| 苍山县| 科技| 长寿区| 晴隆县| 汝南县| 宜兰市| 万源市| 长宁区| 鸡泽县| 紫金县| 交城县| 闽清县| 永顺县| 永靖县| 静乐县| 花垣县| 旬邑县| 岗巴县| 麟游县| 渭南市| 洛川县| 武功县| 张家川| 宁城县|