Skip to content
Snippets Groups Projects
Commit 7b0c6831 authored by Taras's avatar Taras
Browse files

Setup di for new components

parent 72297787
No related branches found
No related tags found
No related merge requests found
...@@ -10,29 +10,21 @@ import com.futo.circles.feature.select_users.data_source.SelectUsersDataSource ...@@ -10,29 +10,21 @@ import com.futo.circles.feature.select_users.data_source.SelectUsersDataSource
import com.futo.circles.feature.sign_up.data_source.SignUpDataSource import com.futo.circles.feature.sign_up.data_source.SignUpDataSource
import com.futo.circles.feature.sign_up_type.data_source.SelectSignUpTypeDataSource import com.futo.circles.feature.sign_up_type.data_source.SelectSignUpTypeDataSource
import com.futo.circles.feature.terms.data_source.AcceptTermsDataSource import com.futo.circles.feature.terms.data_source.AcceptTermsDataSource
import com.futo.circles.feature.validate_email.data_source.ValidateEmailDataSource
import com.futo.circles.feature.validate_token.data_source.ValidateTokenDataSource import com.futo.circles.feature.validate_token.data_source.ValidateTokenDataSource
import org.koin.dsl.module import org.koin.dsl.module
val dataSourceModule = module { val dataSourceModule = module {
factory { LoginDataSource(get()) } factory { LoginDataSource(get()) }
factory { (roomId: String) -> GroupTimelineDatasource(roomId, get()) } factory { (roomId: String) -> GroupTimelineDatasource(roomId, get()) }
factory { GroupTimelineBuilder() } factory { GroupTimelineBuilder() }
factory { (roomId: String) -> InviteMembersDataSource(roomId, get()) } factory { (roomId: String) -> InviteMembersDataSource(roomId, get()) }
factory { (roomId: String?) -> SelectUsersDataSource(roomId) } factory { (roomId: String?) -> SelectUsersDataSource(roomId) }
factory { (roomId: String) -> ManageGroupMembersDataSource(roomId, get()) } factory { (roomId: String) -> ManageGroupMembersDataSource(roomId, get()) }
factory { CreateGroupDataSource() } factory { CreateGroupDataSource() }
single { SignUpDataSource(get()) } single { SignUpDataSource(get()) }
factory { ValidateTokenDataSource(get()) } factory { ValidateTokenDataSource(get()) }
factory { SelectSignUpTypeDataSource(get()) } factory { SelectSignUpTypeDataSource(get()) }
factory { AcceptTermsDataSource(get()) } factory { AcceptTermsDataSource(get()) }
factory { ValidateEmailDataSource(get()) }
} }
\ No newline at end of file
...@@ -10,6 +10,7 @@ import com.futo.circles.feature.select_users.SelectUsersViewModel ...@@ -10,6 +10,7 @@ import com.futo.circles.feature.select_users.SelectUsersViewModel
import com.futo.circles.feature.sign_up.SignUpViewModel import com.futo.circles.feature.sign_up.SignUpViewModel
import com.futo.circles.feature.sign_up_type.SelectSignUpTypeViewModel import com.futo.circles.feature.sign_up_type.SelectSignUpTypeViewModel
import com.futo.circles.feature.terms.AcceptTermsViewModel import com.futo.circles.feature.terms.AcceptTermsViewModel
import com.futo.circles.feature.validate_email.ValidateEmailViewModel
import com.futo.circles.feature.validate_token.ValidateTokenViewModel import com.futo.circles.feature.validate_token.ValidateTokenViewModel
import org.koin.androidx.viewmodel.dsl.viewModel import org.koin.androidx.viewmodel.dsl.viewModel
import org.koin.core.parameter.parametersOf import org.koin.core.parameter.parametersOf
...@@ -27,4 +28,5 @@ val uiModule = module { ...@@ -27,4 +28,5 @@ val uiModule = module {
viewModel { ValidateTokenViewModel(get()) } viewModel { ValidateTokenViewModel(get()) }
viewModel { SelectSignUpTypeViewModel(get()) } viewModel { SelectSignUpTypeViewModel(get()) }
viewModel { AcceptTermsViewModel(get()) } viewModel { AcceptTermsViewModel(get()) }
viewModel { ValidateEmailViewModel(get()) }
} }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment