Merge on boarding module to login module (#4746)
* Move onboarding code to the login module. * Remove OnBoardingEntryPoint, move the flow to LoginFlowNode * Update screenshots --------- Co-authored-by: ElementBot <android@element.io>
This commit is contained in:
parent
fd4774d380
commit
150239bcd8
91 changed files with 287 additions and 512 deletions
|
|
@ -7,28 +7,20 @@
|
|||
|
||||
package io.element.android.features.login.api
|
||||
|
||||
import android.os.Parcelable
|
||||
import com.bumble.appyx.core.modality.BuildContext
|
||||
import com.bumble.appyx.core.node.Node
|
||||
import com.bumble.appyx.core.plugin.Plugin
|
||||
import io.element.android.libraries.architecture.FeatureEntryPoint
|
||||
import kotlinx.parcelize.Parcelize
|
||||
|
||||
interface LoginEntryPoint : FeatureEntryPoint {
|
||||
data class Params(
|
||||
val flowType: LoginFlowType
|
||||
)
|
||||
interface Callback : Plugin {
|
||||
fun onReportProblem()
|
||||
}
|
||||
|
||||
fun nodeBuilder(parentNode: Node, buildContext: BuildContext): NodeBuilder
|
||||
|
||||
interface NodeBuilder {
|
||||
fun params(params: Params): NodeBuilder
|
||||
fun callback(callback: Callback): NodeBuilder
|
||||
fun build(): Node
|
||||
}
|
||||
}
|
||||
|
||||
@Parcelize
|
||||
enum class LoginFlowType : Parcelable {
|
||||
SIGN_IN_MANUAL,
|
||||
SIGN_IN_QR_CODE,
|
||||
SIGN_UP
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue