File tree Expand file tree Collapse file tree
feature/splash/src/main/kotlin/com/ninecraft/booket/splash Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,11 +2,10 @@ package com.ninecraft.booket.splash
22
33import android.content.Context
44import android.content.Intent
5- import android.net.Uri
65import androidx.compose.runtime.Composable
76import androidx.compose.ui.platform.LocalContext
8- import com.skydoves.compose.effects.RememberedEffect
97import androidx.core.net.toUri
8+ import com.skydoves.compose.effects.RememberedEffect
109
1110@Composable
1211internal fun HandleSplashSideEffects (
Original file line number Diff line number Diff line change @@ -72,19 +72,23 @@ class SplashPresenter @AssistedInject constructor(
7272 OnboardingState .NOT_COMPLETED -> {
7373 navigator.resetRoot(OnboardingScreen )
7474 }
75+
7576 OnboardingState .COMPLETED -> {
7677 when (autoLoginState) {
7778 AutoLoginState .LOGGED_IN -> {
7879 checkTermsAgreement()
7980 }
81+
8082 AutoLoginState .NOT_LOGGED_IN -> {
8183 navigator.resetRoot(LoginScreen )
8284 }
85+
8386 AutoLoginState .IDLE -> {
8487 // 자동 로그인 상태를 기다리는 중
8588 }
8689 }
8790 }
91+
8892 OnboardingState .IDLE -> {
8993 // 온보딩 상태를 기다리는 중
9094 }
@@ -96,6 +100,7 @@ class SplashPresenter @AssistedInject constructor(
96100 SplashUiEvent .OnUpdateButtonClick -> {
97101 sideEffect = SplashSideEffect .NavigateToPlayStore
98102 }
103+
99104 SplashUiEvent .InitSideEffect -> {
100105 sideEffect = null
101106 }
@@ -126,7 +131,7 @@ class SplashPresenter @AssistedInject constructor(
126131 return SplashUiState (
127132 isForceUpdateDialogVisible = isForceUpdateDialogVisible,
128133 sideEffect = sideEffect,
129- eventSink = ::handleEvent
134+ eventSink = ::handleEvent,
130135 )
131136 }
132137
Original file line number Diff line number Diff line change @@ -19,4 +19,3 @@ sealed interface SplashUiEvent : CircuitUiEvent {
1919 data object InitSideEffect : SplashUiEvent
2020 data object OnUpdateButtonClick : SplashUiEvent
2121}
22-
You can’t perform that action at this time.
0 commit comments