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
d304a1ab
Commit
d304a1ab
authored
2 years ago
by
Taras
Browse files
Options
Downloads
Patches
Plain Diff
Setup di
parent
13477f43
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/org/futo/circles/di/DataSourceModule.kt
+2
-0
2 additions, 0 deletions
app/src/main/java/org/futo/circles/di/DataSourceModule.kt
app/src/main/java/org/futo/circles/di/UiModule.kt
+2
-0
2 additions, 0 deletions
app/src/main/java/org/futo/circles/di/UiModule.kt
with
4 additions
and
0 deletions
app/src/main/java/org/futo/circles/di/DataSourceModule.kt
+
2
−
0
View file @
d304a1ab
...
@@ -31,6 +31,7 @@ import org.futo.circles.feature.sign_up.SignUpDataSource
...
@@ -31,6 +31,7 @@ import org.futo.circles.feature.sign_up.SignUpDataSource
import
org.futo.circles.feature.sign_up.setup_circles.SetupCirclesDataSource
import
org.futo.circles.feature.sign_up.setup_circles.SetupCirclesDataSource
import
org.futo.circles.feature.sign_up.setup_profile.SetupProfileDataSource
import
org.futo.circles.feature.sign_up.setup_profile.SetupProfileDataSource
import
org.futo.circles.feature.sign_up.sign_up_type.SelectSignUpTypeDataSource
import
org.futo.circles.feature.sign_up.sign_up_type.SelectSignUpTypeDataSource
import
org.futo.circles.feature.sign_up.subscription_stage.SubscriptionStageDataSource
import
org.futo.circles.feature.sign_up.terms.AcceptTermsDataSource
import
org.futo.circles.feature.sign_up.terms.AcceptTermsDataSource
import
org.futo.circles.feature.sign_up.validate_email.ValidateEmailDataSource
import
org.futo.circles.feature.sign_up.validate_email.ValidateEmailDataSource
import
org.futo.circles.feature.sign_up.validate_token.ValidateTokenDataSource
import
org.futo.circles.feature.sign_up.validate_token.ValidateTokenDataSource
...
@@ -92,4 +93,5 @@ val dataSourceModule = module {
...
@@ -92,4 +93,5 @@ val dataSourceModule = module {
factory
{
UserOptionsDataSource
()
}
factory
{
UserOptionsDataSource
()
}
factory
{
(
userId
:
String
)
->
UserDataSource
(
get
(),
userId
)
}
factory
{
(
userId
:
String
)
->
UserDataSource
(
get
(),
userId
)
}
single
{
PickDeviceMediaDataSource
(
get
())
}
single
{
PickDeviceMediaDataSource
(
get
())
}
factory
{
SubscriptionStageDataSource
(
get
())
}
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
app/src/main/java/org/futo/circles/di/UiModule.kt
+
2
−
0
View file @
d304a1ab
...
@@ -28,6 +28,7 @@ import org.futo.circles.feature.sign_up.SignUpViewModel
...
@@ -28,6 +28,7 @@ import org.futo.circles.feature.sign_up.SignUpViewModel
import
org.futo.circles.feature.sign_up.setup_circles.SetupCirclesViewModel
import
org.futo.circles.feature.sign_up.setup_circles.SetupCirclesViewModel
import
org.futo.circles.feature.sign_up.setup_profile.SetupProfileViewModel
import
org.futo.circles.feature.sign_up.setup_profile.SetupProfileViewModel
import
org.futo.circles.feature.sign_up.sign_up_type.SelectSignUpTypeViewModel
import
org.futo.circles.feature.sign_up.sign_up_type.SelectSignUpTypeViewModel
import
org.futo.circles.feature.sign_up.subscription_stage.SubscriptionStageViewModel
import
org.futo.circles.feature.sign_up.terms.AcceptTermsViewModel
import
org.futo.circles.feature.sign_up.terms.AcceptTermsViewModel
import
org.futo.circles.feature.sign_up.validate_email.ValidateEmailViewModel
import
org.futo.circles.feature.sign_up.validate_email.ValidateEmailViewModel
import
org.futo.circles.feature.sign_up.validate_token.ValidateTokenViewModel
import
org.futo.circles.feature.sign_up.validate_token.ValidateTokenViewModel
...
@@ -102,4 +103,5 @@ val uiModule = module {
...
@@ -102,4 +103,5 @@ val uiModule = module {
viewModel
{
(
isVideoAvailable
:
Boolean
)
->
viewModel
{
(
isVideoAvailable
:
Boolean
)
->
PickDeviceMediaViewModel
(
isVideoAvailable
,
get
())
PickDeviceMediaViewModel
(
isVideoAvailable
,
get
())
}
}
viewModel
{
SubscriptionStageViewModel
(
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