-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: 앱 실행 데이터 작업 중에 SplashScreen을 계속 보이도록 설정
- Loading branch information
1 parent
60675d5
commit 5f5b40e
Showing
4 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
feature/navigator/src/main/java/com/susu/feature/navigator/initialization/InitialRoute.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package com.susu.feature.navigator.initialization | ||
|
||
enum class InitialRoute { | ||
SIGNUP_VOTE, LOGIN, RECEIVED | ||
} |
12 changes: 12 additions & 0 deletions
12
feature/navigator/src/main/java/com/susu/feature/navigator/initialization/MainContract.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package com.susu.feature.navigator.initialization | ||
|
||
import com.susu.core.ui.base.SideEffect | ||
import com.susu.core.ui.base.UiState | ||
|
||
sealed interface MainContract { | ||
object MainEffect : SideEffect | ||
sealed class MainState : UiState { | ||
data object Loading : MainState() | ||
data class Initialized(val initialRoute: InitialRoute) : MainState() | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
feature/navigator/src/main/java/com/susu/feature/navigator/initialization/MainViewModel.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package com.susu.feature.navigator.initialization | ||
|
||
import com.susu.core.ui.base.BaseViewModel | ||
import dagger.hilt.android.lifecycle.HiltViewModel | ||
import javax.inject.Inject | ||
|
||
@HiltViewModel | ||
class MainViewModel @Inject constructor() : BaseViewModel<MainContract.MainState, MainContract.MainEffect>(MainContract.MainState.Loading) |