Change-Id: Iedcafbf0ad7b853544b7b5b3f37685a0a868c2e6
pull/582/head
Yuri Schimke 1 year ago
parent 9e399b69ea
commit 4fa730098d

@ -58,7 +58,7 @@ object NetworkModule {
if (BuildConfig.DEBUG) { if (BuildConfig.DEBUG) {
setLevel(HttpLoggingInterceptor.Level.BODY) setLevel(HttpLoggingInterceptor.Level.BODY)
} }
} },
) )
.build() .build()

@ -68,14 +68,13 @@ private data class NetworkResponse<T>(
val data: T, val data: T,
) )
/** /**
* [Retrofit] backed [NiaNetworkDataSource] * [Retrofit] backed [NiaNetworkDataSource]
*/ */
@Singleton @Singleton
class RetrofitNiaNetwork @Inject constructor( class RetrofitNiaNetwork @Inject constructor(
networkJson: Json, networkJson: Json,
okhttpCallFactory: Call.Factory okhttpCallFactory: Call.Factory,
) : NiaNetworkDataSource { ) : NiaNetworkDataSource {
private val networkApi = Retrofit.Builder() private val networkApi = Retrofit.Builder()

Loading…
Cancel
Save