Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
circles-android
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Circles
circles-android
Commits
7b0c6831
Commit
7b0c6831
authored
3 years ago
by
Taras
Browse files
Options
Downloads
Patches
Plain Diff
Setup di for new components
parent
72297787
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/src/main/java/com/futo/circles/di/DataSourceModule.kt
+2
-10
2 additions, 10 deletions
app/src/main/java/com/futo/circles/di/DataSourceModule.kt
app/src/main/java/com/futo/circles/di/UiModule.kt
+2
-0
2 additions, 0 deletions
app/src/main/java/com/futo/circles/di/UiModule.kt
with
4 additions
and
10 deletions
app/src/main/java/com/futo/circles/di/DataSourceModule.kt
+
2
−
10
View file @
7b0c6831
...
@@ -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
This diff is collapsed.
Click to expand it.
app/src/main/java/com/futo/circles/di/UiModule.kt
+
2
−
0
View file @
7b0c6831
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment