Fix assemble release warnings

pull/56/head
Sudhanshu Singh 3 years ago
parent 3544b53ba6
commit 51eb37d340

@ -30,7 +30,7 @@ import javax.inject.Singleton
object DatabaseModule {
@Provides
@Singleton
fun providesNiADatabase(
fun providesNiaDatabase(
@ApplicationContext context: Context,
): NiaDatabase = Room.databaseBuilder(
context,

@ -31,7 +31,7 @@ import kotlinx.serialization.json.Json
interface NetworkModule {
@Binds
fun bindsNiANetwork(
fun bindsNiaNetwork(
niANetwork: FakeNiaNetwork
): NiaNetwork

@ -16,8 +16,6 @@
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.Module
import dagger.Provides
@ -31,9 +29,9 @@ import kotlinx.serialization.json.Json
interface NetworkModule {
@Binds
fun bindsNiANetwork(
niANetwork: RetrofitNiANetwork
): NiANetwork
fun bindsNiaNetwork(
niANetwork: RetrofitNiaNetwork
): NiaNetwork
companion object {
@Provides

@ -31,7 +31,7 @@ class FakeNiaNetworkTest {
@Before
fun setUp() {
subject = com.google.samples.apps.nowinandroid.core.network.fake.FakeNiaNetwork(
subject = FakeNiaNetwork(
ioDispatcher = testDispatcher,
networkJson = Json { ignoreUnknownKeys = true }
)

@ -212,7 +212,7 @@ A repository may depend on one or more data sources. For example, the `OfflineFi
</td>
</tr>
<tr>
<td>NiANetwork
<td>NiaNetwork
</td>
<td>Remote API accessed using Retrofit
</td>

Loading…
Cancel
Save