Created
January 24, 2019 18:53
-
-
Save andijakl/5c65b795f68b48e891403ae7c201f8dc to your computer and use it in GitHub Desktop.
Dependencies for using Retrofit, Moshi and Kotlin Coroutines
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Retrofit | |
implementation 'com.squareup.retrofit2:retrofit:2.5.0' | |
implementation "com.squareup.retrofit2:converter-moshi:2.5.0" | |
implementation "com.jakewharton.retrofit:retrofit2-kotlin-coroutines-adapter:0.9.2" | |
// Moshi | |
implementation "com.squareup.moshi:moshi:1.8.0" | |
kapt "com.squareup.moshi:moshi-kotlin-codegen:1.8.0" | |
// Kotlin Coroutines | |
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.0.0' | |
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.0.0' |
Here you go:
build.gradle.kts
dependencies {
// Retrofit
implementation("com.squareup.retrofit2:retrofit:2.5.0")
implementation("com.squareup.retrofit2:converter-moshi:2.5.0")
implementation("com.jakewharton.retrofit:retrofit2-kotlin-coroutines-adapter:0.9.2")
// Moshi
implementation("com.squareup.moshi:moshi:1.8.0")
kapt("com.squareup.moshi:moshi-kotlin-codegen:1.8.0")
// Kotlin Coroutines
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.0.0")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.0.0")
}
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
would be nice if someone can update them for Kotlin dsl