Mark Hilt modules as interfaces which they are
This commit is contained in:
@@ -10,7 +10,7 @@ import dagger.hilt.components.SingletonComponent
|
||||
|
||||
@Module
|
||||
@InstallIn(SingletonComponent::class)
|
||||
abstract class MealieModule {
|
||||
interface MealieModule {
|
||||
companion object {
|
||||
@Provides
|
||||
fun createDb(@ApplicationContext context: Context): MealieDb {
|
||||
|
||||
@@ -12,13 +12,13 @@ import kotlinx.serialization.ExperimentalSerializationApi
|
||||
@ExperimentalSerializationApi
|
||||
@Module
|
||||
@InstallIn(ViewModelComponent::class)
|
||||
abstract class AuthModule {
|
||||
interface AuthModule {
|
||||
@Binds
|
||||
abstract fun bindAuthDataSource(authDataSourceImpl: AuthDataSourceImpl): AuthDataSource
|
||||
fun bindAuthDataSource(authDataSourceImpl: AuthDataSourceImpl): AuthDataSource
|
||||
|
||||
@Binds
|
||||
abstract fun bindAuthStorage(authStorageImpl: AuthStorageImpl): AuthStorage
|
||||
fun bindAuthStorage(authStorageImpl: AuthStorageImpl): AuthStorage
|
||||
|
||||
@Binds
|
||||
abstract fun bindAuthRepo(authRepo: AuthRepoImpl): AuthRepo
|
||||
fun bindAuthRepo(authRepo: AuthRepoImpl): AuthRepo
|
||||
}
|
||||
Reference in New Issue
Block a user