pull/32/head
kunfei 5 years ago
parent 246009e1a8
commit b78b2e901d
  1. 2
      app/src/main/java/io/legado/app/help/http/HttpHelper.kt

@ -7,7 +7,7 @@ import java.util.concurrent.TimeUnit
object HttpHelper { object HttpHelper {
val client: OkHttpClient = getOkHttpClient() private val client: OkHttpClient = getOkHttpClient()
inline fun <reified T> getApiService(baseUrl: String): T { inline fun <reified T> getApiService(baseUrl: String): T {
return getRetrofit(baseUrl).create(T::class.java) return getRetrofit(baseUrl).create(T::class.java)

Loading…
Cancel
Save