-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Setting navigation
- Loading branch information
Showing
7 changed files
with
71 additions
and
3 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
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,20 @@ | ||
package team.retum.jobisandroidv2 | ||
|
||
import androidx.compose.runtime.Composable | ||
import androidx.navigation.compose.NavHost | ||
import androidx.navigation.compose.rememberNavController | ||
import team.retum.jobisandroidv2.navigation.NAVIGATION_AUTH | ||
import team.retum.jobisandroidv2.navigation.authNavigation | ||
import team.retum.jobisandroidv2.navigation.mainNavigation | ||
|
||
@Composable | ||
internal fun JobisApp() { | ||
val navController = rememberNavController() | ||
NavHost( | ||
navController = navController, | ||
startDestination = NAVIGATION_AUTH, | ||
) { | ||
authNavigation() | ||
mainNavigation() | ||
} | ||
} |
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
15 changes: 15 additions & 0 deletions
15
app/src/main/java/team/retum/jobisandroidv2/navigation/AuthNavigation.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,15 @@ | ||
package team.retum.jobisandroidv2.navigation | ||
|
||
import androidx.navigation.NavGraphBuilder | ||
import androidx.navigation.navigation | ||
|
||
const val NAVIGATION_AUTH = "auth" | ||
|
||
internal fun NavGraphBuilder.authNavigation() { | ||
navigation( | ||
route = NAVIGATION_AUTH, | ||
startDestination = "", | ||
) { | ||
// TODO auth 관련 스크린 위치 | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
app/src/main/java/team/retum/jobisandroidv2/navigation/HomeNavigation.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,15 @@ | ||
package team.retum.jobisandroidv2.navigation | ||
|
||
import androidx.navigation.NavGraphBuilder | ||
import androidx.navigation.navigation | ||
|
||
const val NAVIGATION_HOME = "home" | ||
|
||
internal fun NavGraphBuilder.homeNavigation() { | ||
navigation( | ||
route = NAVIGATION_HOME, | ||
startDestination = "", | ||
) { | ||
// TODO home 관련 스크린 위치 | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
app/src/main/java/team/retum/jobisandroidv2/navigation/MainNavigation.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,15 @@ | ||
package team.retum.jobisandroidv2.navigation | ||
|
||
import androidx.navigation.NavGraphBuilder | ||
import androidx.navigation.navigation | ||
|
||
const val NAVIGATION_MAIN = "main" | ||
|
||
fun NavGraphBuilder.mainNavigation(){ | ||
navigation( | ||
route = NAVIGATION_MAIN, | ||
startDestination = "", | ||
){ | ||
// TODO main 관련 스크린 위치 | ||
} | ||
} |
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