Skip to content

Instantly share code, notes, and snippets.

@oyeraghib
Created September 23, 2021 11:45
Show Gist options
  • Save oyeraghib/682538f531939fe3ad0a8d5725902d2c to your computer and use it in GitHub Desktop.
Save oyeraghib/682538f531939fe3ad0a8d5725902d2c to your computer and use it in GitHub Desktop.
Dependency for using Retrfoit, Moshi with Kotlin Coroutines
//Retrofit
implementation 'com.squareup.retrofit2:retrofit:2.9.0'
implementation "com.squareup.retrofit2:converter-moshi:2.9.0"
implementation "com.jakewharton.retrofit:retrofit2-kotlin-coroutines-adapter:0.9.2"
// Moshi
implementation "com.squareup.moshi:moshi:1.12.0"
kapt "com.squareup.moshi:moshi-kotlin-codegen:1.12.0"
// Kotlin Coroutines
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.1'
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.1'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment