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
f4f98907
Commit
f4f98907
authored
1 year ago
by
Taras
Browse files
Options
Downloads
Patches
Plain Diff
Remove skip subscription stage
parent
3be0745b
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
+2
-20
2 additions, 20 deletions
...org/futo/circles/auth/feature/sign_up/SignUpDataSource.kt
with
2 additions
and
20 deletions
auth/src/main/java/org/futo/circles/auth/feature/sign_up/SignUpDataSource.kt
+
2
−
20
View file @
f4f98907
...
...
@@ -49,31 +49,13 @@ class SignUpDataSource @Inject constructor(
suspend
fun
startSignUpStages
(
stages
:
List
<
Stage
>,
serverDomain
:
String
,
subscriptionReceiptData
:
SubscriptionReceiptData
?
serverDomain
:
String
)
{
currentStage
=
null
stagesToComplete
.
clear
()
domain
=
serverDomain
stagesToComplete
.
addAll
(
stages
)
subscriptionReceiptData
?.
let
{
skipSubscriptionStageIfValid
(
it
)
}
?:
navigateToNextStage
()
}
private
suspend
fun
skipSubscriptionStageIfValid
(
subscriptionReceiptData
:
SubscriptionReceiptData
)
{
setNextStage
()
(
currentStage
as
?
Stage
.
Other
)
?.
takeIf
{
it
.
type
==
REGISTRATION_SUBSCRIPTION_TYPE
}
?:
run
{
currentStage
=
null
navigateToNextStage
()
return
}
val
response
=
subscriptionStageDataSource
.
validateSubscription
(
subscriptionReceiptData
)
if
(
response
is
Response
.
Error
)
{
currentStage
=
null
navigateToNextStage
()
}
navigateToNextStage
()
}
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