Fix moar ktlint issues
This commit is contained in:
parent
a831f05f6e
commit
5d086ad82d
528 changed files with 146 additions and 629 deletions
|
|
@ -32,7 +32,6 @@ class VerifySelfSessionNode @AssistedInject constructor(
|
|||
@Assisted plugins: List<Plugin>,
|
||||
private val presenter: VerifySelfSessionPresenter,
|
||||
) : Node(buildContext, plugins = plugins) {
|
||||
|
||||
@Composable
|
||||
override fun View(modifier: Modifier) {
|
||||
val state = presenter.present()
|
||||
|
|
|
|||
|
|
@ -40,7 +40,6 @@ class VerifySelfSessionPresenter @Inject constructor(
|
|||
private val sessionVerificationService: SessionVerificationService,
|
||||
private val stateMachine: VerifySelfSessionStateMachine,
|
||||
) : Presenter<VerifySelfSessionState> {
|
||||
|
||||
@Composable
|
||||
override fun present(): VerifySelfSessionState {
|
||||
LaunchedEffect(Unit) {
|
||||
|
|
|
|||
|
|
@ -26,7 +26,6 @@ data class VerifySelfSessionState(
|
|||
val verificationFlowStep: VerificationStep,
|
||||
val eventSink: (VerifySelfSessionViewEvents) -> Unit,
|
||||
) {
|
||||
|
||||
@Stable
|
||||
sealed interface VerificationStep {
|
||||
data object Initial : VerificationStep
|
||||
|
|
|
|||
|
|
@ -31,7 +31,6 @@ class VerifySelfSessionStateMachine @Inject constructor(
|
|||
) : FlowReduxStateMachine<VerifySelfSessionStateMachine.State, VerifySelfSessionStateMachine.Event>(
|
||||
initialState = State.Initial
|
||||
) {
|
||||
|
||||
init {
|
||||
spec {
|
||||
inState<State.Initial> {
|
||||
|
|
|
|||
|
|
@ -89,6 +89,7 @@ internal fun Int.toEmojiResource(): EmojiResource {
|
|||
60 -> EmojiResource(R.drawable.ic_verification_60, R.string.verification_emoji_60)
|
||||
61 -> EmojiResource(R.drawable.ic_verification_61, R.string.verification_emoji_61)
|
||||
62 -> EmojiResource(R.drawable.ic_verification_62, R.string.verification_emoji_62)
|
||||
/* 63 */ else -> EmojiResource(R.drawable.ic_verification_63, R.string.verification_emoji_63)
|
||||
63 -> EmojiResource(R.drawable.ic_verification_63, R.string.verification_emoji_63)
|
||||
else -> error("Cannot happen ($this)!")
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -35,7 +35,6 @@ import org.junit.Test
|
|||
|
||||
@ExperimentalCoroutinesApi
|
||||
class VerifySelfSessionPresenterTests {
|
||||
|
||||
@get:Rule
|
||||
val warmUpRule = WarmUpRule()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue