Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
revanthkumarJ committed Jan 13, 2025
1 parent c7bc4e4 commit e321d79
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,13 @@ import org.mifos.mobile.core.datastore.PreferenceHelper
import org.mifos.mobile.core.datastore.UserPreferencesDataSource
import org.mifos.mobile.core.datastore.UserPreferencesRepository


val PreferencesModule = module {
factory<Settings> { Settings() }

factory {
UserPreferencesDataSource(
settings = get(),
dispatcher = get(named(MifosDispatchers.IO.name))
dispatcher = get(named(MifosDispatchers.IO.name)),
)
}

Expand All @@ -40,5 +39,5 @@ val PreferencesModule = module {
enum class MifosDispatchers {
Default,
IO,
Unconfined
}
Unconfined,
}

0 comments on commit e321d79

Please sign in to comment.