AndroidContactFeatureModule.kt 965 B

12345678910111213141516171819202122
  1. package ch.threema.app.androidcontactsync
  2. import ch.threema.app.androidcontactsync.read.AndroidContactReader
  3. import ch.threema.app.androidcontactsync.read.LookupInfoReader
  4. import ch.threema.app.androidcontactsync.read.RawContactCursorProvider
  5. import ch.threema.app.androidcontactsync.read.RawContactReader
  6. import ch.threema.app.androidcontactsync.usecases.GetAndroidContactNameUseCase
  7. import ch.threema.app.androidcontactsync.usecases.GetRawContactNameUseCase
  8. import ch.threema.app.androidcontactsync.usecases.UpdateContactNameUseCase
  9. import org.koin.core.module.dsl.singleOf
  10. import org.koin.dsl.module
  11. val androidContactFeatureModule = module {
  12. singleOf(::AndroidContactChangeMonitor)
  13. singleOf(::AndroidContactReader)
  14. singleOf(::GetAndroidContactNameUseCase)
  15. singleOf(::GetRawContactNameUseCase)
  16. singleOf(::LookupInfoReader)
  17. singleOf(::RawContactCursorProvider)
  18. singleOf(::RawContactReader)
  19. singleOf(::UpdateContactNameUseCase)
  20. }