added databasemodule and firebasemodule
This commit is contained in:
parent
76d8a58ef8
commit
41141fcf70
1 changed files with 19 additions and 0 deletions
19
app/src/main/java/be/ugent/sel/studeez/di/DatabaseModule.kt
Normal file
19
app/src/main/java/be/ugent/sel/studeez/di/DatabaseModule.kt
Normal file
|
@ -0,0 +1,19 @@
|
|||
package be.ugent.sel.studeez.di
|
||||
|
||||
import be.ugent.sel.studeez.domain.AccountDAO
|
||||
import be.ugent.sel.studeez.domain.LogService
|
||||
import be.ugent.sel.studeez.domain.implementation.FirebaseAccountDAO
|
||||
import be.ugent.sel.studeez.domain.implementation.LogServiceImpl
|
||||
import dagger.Binds
|
||||
import dagger.Module
|
||||
import dagger.hilt.InstallIn
|
||||
import dagger.hilt.components.SingletonComponent
|
||||
|
||||
@Module
|
||||
@InstallIn(SingletonComponent::class)
|
||||
abstract class DatabaseModule {
|
||||
@Binds abstract fun provideAccountService(impl: FirebaseAccountDAO): AccountDAO
|
||||
|
||||
@Binds abstract fun provideLogService(impl: LogServiceImpl): LogService
|
||||
|
||||
}
|
Reference in a new issue