Permalink
Browse files

Update to Retrofit 2.5.0

  • Loading branch information...
ianhanniballake committed Jan 16, 2019
1 parent e2e4cf6 commit 23eb50010425a9e93602fe53c5b3c66ee0b6e0f6
@@ -21,8 +21,8 @@ dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlinVersion"
implementation "androidx.core:core-ktx:$coreVersion"
implementation "android.arch.work:work-runtime-ktx:$workManagerVersion"
implementation "com.squareup.retrofit2:retrofit:2.3.0"
implementation "com.squareup.retrofit2:converter-moshi:2.3.0"
implementation "com.squareup.retrofit2:retrofit:2.5.0"
implementation "com.squareup.retrofit2:converter-moshi:2.5.0"
implementation "com.squareup.okhttp3:okhttp:$okhttpVersion"
//implementation "com.google.android.apps.muzei:muzei-api:+"
implementation project(':muzei-api')
@@ -21,6 +21,7 @@ import okhttp3.OkHttpClient
import retrofit2.Call
import retrofit2.Retrofit
import retrofit2.converter.moshi.MoshiConverterFactory
import retrofit2.create
import retrofit2.http.GET
import retrofit2.http.Path
import java.io.IOException
@@ -46,7 +47,7 @@ internal interface UnsplashService {
.addConverterFactory(MoshiConverterFactory.create())
.build()

return retrofit.create<UnsplashService>(UnsplashService::class.java)
return retrofit.create()
}

@Throws(IOException::class)

0 comments on commit 23eb500

Please sign in to comment.