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 { object DatabaseModule {
@Provides @Provides
@Singleton @Singleton
fun providesNiADatabase( fun providesNiaDatabase(
@ApplicationContext context: Context, @ApplicationContext context: Context,
): NiaDatabase = Room.databaseBuilder( ): NiaDatabase = Room.databaseBuilder(
context, context,

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

@ -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

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

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

Loading…
Cancel
Save