Skip to content

Instantly share code, notes, and snippets.

@TKolbusz
Last active June 16, 2017 08:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TKolbusz/8857ba47ea5c9468146d0a4c052d76c2 to your computer and use it in GitHub Desktop.
Save TKolbusz/8857ba47ea5c9468146d0a4c052d76c2 to your computer and use it in GitHub Desktop.
Controlling database flow using Room and RxJava2
apply plugin: ‘kotlin-kapt’
android {
---
}
dependencies {
// RxKotlin and RxAndroid
compile "io.reactivex.rxjava2:rxkotlin:2.0.0"
compile "io.reactivex.rxjava2:rxandroid:2.0.1"
// Room
compile "android.arch.persistence.room:runtime:1.0.0-alpha2"
compile "android.arch.persistence.room:rxjava2:1.0.0-alpha2"
kapt "android.arch.persistence.room:compiler:1.0.0-alpha2"
}
repositories {
jcenter()
maven {
url "https://maven.google.com"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment