Replace module interfaces with objects

Change-Id: Ieab7533120e7b8d5a770963e37b9db405e229630
pull/2/head
Adetunji Dahunsi 3 years ago
parent 8b1852cf5e
commit e089012a8d

@ -28,8 +28,7 @@ import dagger.hilt.components.SingletonComponent
@Module
@InstallIn(SingletonComponent::class)
interface DaosModule {
companion object {
object DaosModule {
@Provides
fun providesAuthorDao(
database: NiADatabase,
@ -50,4 +49,3 @@ interface DaosModule {
database: NiADatabase,
): NewsResourceDao = database.newsResourceDao()
}
}

@ -28,8 +28,7 @@ import javax.inject.Singleton
@Module
@InstallIn(SingletonComponent::class)
interface DatabaseModule {
companion object {
object DatabaseModule {
@Provides
@Singleton
fun providesNiADatabase(
@ -40,4 +39,3 @@ interface DatabaseModule {
"nia-database"
).build()
}
}

Loading…
Cancel
Save