Fix moar ktlint issues
This commit is contained in:
parent
a831f05f6e
commit
5d086ad82d
528 changed files with 146 additions and 629 deletions
|
|
@ -27,12 +27,10 @@ import javax.inject.Inject
|
|||
|
||||
@ContributesBinding(AppScope::class)
|
||||
class DefaultSignedOutEntryPoint @Inject constructor() : SignedOutEntryPoint {
|
||||
|
||||
override fun nodeBuilder(parentNode: Node, buildContext: BuildContext): SignedOutEntryPoint.NodeBuilder {
|
||||
val plugins = ArrayList<Plugin>()
|
||||
|
||||
return object : SignedOutEntryPoint.NodeBuilder {
|
||||
|
||||
override fun params(params: SignedOutEntryPoint.Params): SignedOutEntryPoint.NodeBuilder {
|
||||
plugins += SignedOutNode.Inputs(params.sessionId)
|
||||
return this
|
||||
|
|
|
|||
|
|
@ -35,7 +35,6 @@ class SignedOutNode @AssistedInject constructor(
|
|||
@Assisted plugins: List<Plugin>,
|
||||
presenterFactory: SignedOutPresenter.Factory,
|
||||
) : Node(buildContext, plugins = plugins) {
|
||||
|
||||
data class Inputs(
|
||||
val sessionId: SessionId,
|
||||
) : NodeInputs
|
||||
|
|
|
|||
|
|
@ -31,11 +31,11 @@ import io.element.android.libraries.sessionstorage.api.SessionStore
|
|||
import kotlinx.coroutines.launch
|
||||
|
||||
class SignedOutPresenter @AssistedInject constructor(
|
||||
@Assisted private val sessionId: String, /* Cannot inject SessionId */
|
||||
// Cannot inject SessionId
|
||||
@Assisted private val sessionId: String,
|
||||
private val sessionStore: SessionStore,
|
||||
private val buildMeta: BuildMeta,
|
||||
) : Presenter<SignedOutState> {
|
||||
|
||||
@AssistedFactory
|
||||
interface Factory {
|
||||
fun create(sessionId: String): SignedOutPresenter
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue