Skip to content

Instantly share code, notes, and snippets.

View aoudiamoncef's full-sized avatar
🏠
Working from home

Moncef AOUDIA aoudiamoncef

🏠
Working from home
View GitHub Profile
@aoudiamoncef
aoudiamoncef / RxLiveData.kt
Created August 3, 2018 07:13 — forked from rubixhacker/RxLiveData.kt
Kotlin extension functions to convert LiveData to and from a Flowable
// Add the following to your build.gradle file
// implementation "android.arch.lifecycle:reactivestreams:1.0.0-beta1"
import android.arch.lifecycle.LifecycleOwner
import android.arch.lifecycle.LiveData
import android.arch.lifecycle.LiveDataReactiveStreams
import io.reactivex.Flowable
/**