|
|
@ -16,8 +16,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
package com.google.samples.apps.nowinandroid.core.network.di
|
|
|
|
package com.google.samples.apps.nowinandroid.core.network.di
|
|
|
|
|
|
|
|
|
|
|
|
import com.google.samples.apps.nowinandroid.core.network.NiANetwork
|
|
|
|
|
|
|
|
import com.google.samples.apps.nowinandroid.core.network.retrofit.RetrofitNiANetwork
|
|
|
|
|
|
|
|
import dagger.Binds
|
|
|
|
import dagger.Binds
|
|
|
|
import dagger.Module
|
|
|
|
import dagger.Module
|
|
|
|
import dagger.Provides
|
|
|
|
import dagger.Provides
|
|
|
@ -31,9 +29,9 @@ import kotlinx.serialization.json.Json
|
|
|
|
interface NetworkModule {
|
|
|
|
interface NetworkModule {
|
|
|
|
|
|
|
|
|
|
|
|
@Binds
|
|
|
|
@Binds
|
|
|
|
fun bindsNiANetwork(
|
|
|
|
fun bindsNiaNetwork(
|
|
|
|
niANetwork: RetrofitNiANetwork
|
|
|
|
niANetwork: RetrofitNiaNetwork
|
|
|
|
): NiANetwork
|
|
|
|
): NiaNetwork
|
|
|
|
|
|
|
|
|
|
|
|
companion object {
|
|
|
|
companion object {
|
|
|
|
@Provides
|
|
|
|
@Provides
|
|
|
|