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
/**
@aoudiamoncef
aoudiamoncef / AndroidTravisCIWithAVD.travis.yml
Created November 7, 2017 13:44
Android continuous integration using Travis CI (build, unit tests and connected tests using AVD)
sudo: required
language: android
jdk: oraclejdk8
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -rf $HOME/.gradle/caches/*/plugin-resolution/
cache:
@aoudiamoncef
aoudiamoncef / AndroidTravisCI.travis.yml
Last active November 7, 2017 14:04
Android continuous integration using Travis CI (build, unit tests and connected tests using AVD)
# For more informations, please read official documentation -> https://docs.travis-ci.com/user/languages/android/
sudo: false
language: android
jdk: oraclejdk8
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -rf $HOME/.gradle/caches/*/plugin-resolution/