Skip to content

Instantly share code, notes, and snippets.

@BalakrishnanPT
Last active October 7, 2019 01:34
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 BalakrishnanPT/28cb0384b1bf34b6632224af3b557b8e to your computer and use it in GitHub Desktop.
Save BalakrishnanPT/28cb0384b1bf34b6632224af3b557b8e to your computer and use it in GitHub Desktop.
// To make API calls
def retrofitVersion = '2.6.0'
// To logs API calls & responses
def logging_version = '4.0.0'
// To use Rx to handle the response and observe the changes in realtime
def rxandroid_version = '2.1.1'
def rxjava_version = '2.1.1'
def rxcalladapter_version = '2.6.0'
def reactivestreams_version = "1.1.1"
// Retrofit
implementation "com.squareup.retrofit2:retrofit:$retrofitVersion"
implementation "com.squareup.retrofit2:converter-gson:$retrofitVersion"
// Http logging
implementation "com.squareup.okhttp3:logging-interceptor:$logging_version"
// Rx-Retrofit Call Adapter
implementation "com.squareup.retrofit2:adapter-rxjava2:$rxcalladapter_version"
// RxAndroid
implementation "io.reactivex.rxjava2:rxandroid:$rxandroid_version"
// RxJava
implementation "io.reactivex.rxjava2:rxjava:$rxjava_version"
// Reactive Streams (convert Observable to LiveData)
implementation "android.arch.lifecycle:reactivestreams:$reactivestreams_version"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment