feat: M3 weighted shuffle v1 — real /api/radio with scoring #21
@@ -13,6 +13,7 @@ import okhttp3.MediaType.Companion.toMediaType
|
||||
import okhttp3.OkHttpClient
|
||||
import okhttp3.logging.HttpLoggingInterceptor
|
||||
import retrofit2.Retrofit
|
||||
import retrofit2.create
|
||||
import java.util.concurrent.TimeUnit
|
||||
import javax.inject.Singleton
|
||||
|
||||
@@ -73,8 +74,7 @@ object NetworkModule {
|
||||
|
||||
@Provides
|
||||
@Singleton
|
||||
fun provideLibraryApi(retrofit: Retrofit): LibraryApi =
|
||||
retrofit.create(LibraryApi::class.java)
|
||||
fun provideLibraryApi(retrofit: Retrofit): LibraryApi = retrofit.create()
|
||||
|
||||
private const val CONNECT_TIMEOUT_SECONDS = 10L
|
||||
private const val READ_TIMEOUT_SECONDS = 30L
|
||||
|
||||
Reference in New Issue
Block a user