Skip to content
WM edited this page Feb 4, 2018 · 2 revisions

Installation

Dependency - fuel

  • Result - The modelling for success/failure of operations in Kotlin

Dependency - fuel-android

Dependency - fuel-livedata

  • Live Data - Android Architecture Components - LiveData

Dependency - fuel-rxjava

  • RxJava - RxJava – Reactive Extensions for the JVM

Dependency - fuel-gson

  • Gson - Gson - A Java serialization/deserialization library to convert Java Objects into JSON and back

Dependency - fuel-jackson

  • Jackson - Jackson - The JSON library for Java

Dependency - fuel-moshi

  • Moshi - Moshi - A modern JSON library for Android and Java

Gradle

repositories {
    jcenter()
}

dependencies {
    compile 'com.github.kittinunf.fuel:fuel:<latest-version>' //for JVM
    compile 'com.github.kittinunf.fuel:fuel-android:<latest-version>' //for Android
    compile 'com.github.kittinunf.fuel:fuel-livedata:<latest-version>' //for LiveData support
    compile 'com.github.kittinunf.fuel:fuel-rxjava:<latest-version>' //for RxJava support
    compile 'com.github.kittinunf.fuel:fuel-gson:<latest-version>' //for Gson support
    compile 'com.github.kittinunf.fuel:fuel-jackson:<latest-version>' //for Jackson support
    compile 'com.github.kittinunf.fuel:fuel-moshi:<latest-version>' //for Moshi support
}

Sample

  • There are two samples, one is in Kotlin and another one in Java.