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
14f54c00
Commit
14f54c00
authored
1 year ago
by
Taras
Browse files
Options
Downloads
Patches
Plain Diff
Auto skip free signup dummy stage
parent
64187388
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
auth/src/main/java/org/futo/circles/auth/feature/sign_up/SignUpDataSource.kt
+10
-2
10 additions, 2 deletions
...org/futo/circles/auth/feature/sign_up/SignUpDataSource.kt
with
10 additions
and
2 deletions
auth/src/main/java/org/futo/circles/auth/feature/sign_up/SignUpDataSource.kt
+
10
−
2
View file @
14f54c00
...
@@ -4,6 +4,7 @@ import android.content.Context
...
@@ -4,6 +4,7 @@ import android.content.Context
import
androidx.lifecycle.MutableLiveData
import
androidx.lifecycle.MutableLiveData
import
dagger.hilt.android.qualifiers.ApplicationContext
import
dagger.hilt.android.qualifiers.ApplicationContext
import
org.futo.circles.auth.R
import
org.futo.circles.auth.R
import
org.futo.circles.auth.base.BaseLoginStagesDataSource
import
org.futo.circles.auth.bsspeke.BSSpekeClientProvider
import
org.futo.circles.auth.bsspeke.BSSpekeClientProvider
import
org.futo.circles.auth.feature.pass_phrase.create.CreatePassPhraseDataSource
import
org.futo.circles.auth.feature.pass_phrase.create.CreatePassPhraseDataSource
import
org.futo.circles.core.base.SingleEventLiveData
import
org.futo.circles.core.base.SingleEventLiveData
...
@@ -43,7 +44,7 @@ class SignUpDataSource @Inject constructor(
...
@@ -43,7 +44,7 @@ class SignUpDataSource @Inject constructor(
var
domain
:
String
=
""
var
domain
:
String
=
""
private
set
private
set
fun
startSignUpStages
(
suspend
fun
startSignUpStages
(
stages
:
List
<
Stage
>,
stages
:
List
<
Stage
>,
serverDomain
:
String
serverDomain
:
String
)
{
)
{
...
@@ -51,7 +52,14 @@ class SignUpDataSource @Inject constructor(
...
@@ -51,7 +52,14 @@ class SignUpDataSource @Inject constructor(
stagesToComplete
.
clear
()
stagesToComplete
.
clear
()
domain
=
serverDomain
domain
=
serverDomain
stagesToComplete
.
addAll
(
stages
)
stagesToComplete
.
addAll
(
stages
)
navigateToNextStage
()
if
((
stages
.
firstOrNull
()
as
?
Stage
.
Other
)
?.
type
==
REGISTRATION_FREE_TYPE
)
skipFreeSubscriptionDummyStage
()
else
navigateToNextStage
()
}
private
suspend
fun
skipFreeSubscriptionDummyStage
()
{
setNextStage
()
performRegistrationStage
(
mapOf
(
BaseLoginStagesDataSource
.
TYPE_PARAM_KEY
to
REGISTRATION_FREE_TYPE
))
}
}
suspend
fun
performRegistrationStage
(
suspend
fun
performRegistrationStage
(
...
...
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