Skip to content

Instantly share code, notes, and snippets.

View rubixhacker's full-sized avatar

Stewart Boling rubixhacker

View GitHub Profile
@rubixhacker
rubixhacker / RxLiveData.kt
Created September 28, 2017 04:11
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
/**
@rubixhacker
rubixhacker / gist:10d0a5240643ce0973ec
Created August 22, 2015 20:02
Android Simplify SDK 2.0.0 Alpha with Google Wallet
To pull the alpha sdk inculde the following depenency in your build.gradle
compile 'com.simplify:sdk-android:2.0.0-alpha2@aar'
For Android Pay/Google Wallet include:
compile 'com.google.android.gms:play-services-wallet:7.8.0'
To use Android Pay add the Android Pay button to you view
@rubixhacker
rubixhacker / AndroidPayDocs.md
Last active August 29, 2015 14:27
Simplify Android SDK 2.0.0 Alpha Documentation

To pull the alpha sdk inculde the following depenency in your build.gradle

compile 'com.simplify:sdk-android:2.0.0-alpha2@aar'

For Android Pay/Google Wallet include:

compile 'com.google.android.gms:play-services-wallet:7.8.0'

To use Android Pay add the Android Pay button to you view