File tree Expand file tree Collapse file tree
feature/splash/src/main/java/com/yapp/ndgl/feature/splash Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11package com.yapp.ndgl.feature.splash
22
3+ import com.yapp.ndgl.core.base.UiIntent
34import com.yapp.ndgl.core.base.UiSideEffect
45import com.yapp.ndgl.core.base.UiState
56
67class SplashState : UiState
78
9+ sealed interface SplashUiIntent : UiIntent
10+
811sealed interface SplashSideEffect : UiSideEffect {
912 data class NavigateToHome (val isFirstUser : Boolean ) : SplashSideEffect
1013}
Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ package com.yapp.ndgl.feature.splash
22
33import androidx.lifecycle.viewModelScope
44import com.yapp.ndgl.core.base.BaseViewModel
5- import com.yapp.ndgl.core.base.UiIntent
65import com.yapp.ndgl.core.util.suspendRunCatching
76import com.yapp.ndgl.data.auth.repository.AuthRepository
87import dagger.hilt.android.lifecycle.HiltViewModel
@@ -12,7 +11,7 @@ import javax.inject.Inject
1211@HiltViewModel
1312class SplashViewModel @Inject constructor(
1413 private val authRepository : AuthRepository ,
15- ) : BaseViewModel<SplashState, UiIntent , SplashSideEffect>(
14+ ) : BaseViewModel<SplashState, SplashUiIntent , SplashSideEffect>(
1615 initialState = SplashState (),
1716) {
1817 init {
@@ -29,7 +28,5 @@ class SplashViewModel @Inject constructor(
2928 }
3029 }
3130
32- override suspend fun handleIntent (intent : UiIntent ) {
33- // Splash에 따로 intent 존재하지 않음
34- }
31+ override suspend fun handleIntent (intent : SplashUiIntent ) = Unit
3532}
You can’t perform that action at this time.
0 commit comments