- Reactive Programming in Kotlin
- Rivu Chakraborty
- 144字
- 2021-07-02 22:26:37
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.
- 企業數字化創新引擎:企業級PaaS平臺HZERO
- Greenplum:從大數據戰略到實現
- Unity 5.x Game AI Programming Cookbook
- Google Visualization API Essentials
- Python數據分析入門:從數據獲取到可視化
- 數據驅動設計:A/B測試提升用戶體驗
- 數據挖掘原理與SPSS Clementine應用寶典
- Splunk智能運維實戰
- Google Cloud Platform for Developers
- Chef Essentials
- 計算機組裝與維護(微課版)
- 活用數據:驅動業務的數據分析實戰
- The Natural Language Processing Workshop
- Filecoin原理與實現
- 企業大數據處理:Spark、Druid、Flume與Kafka應用實踐