-
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.
- Loading branch information
1 parent
df37850
commit 0f35c3e
Showing
8 changed files
with
114 additions
and
5 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
feature/bookmark/src/main/java/store/newsbriefing/app/feature/bookmark/BookmarkNavigation.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,19 @@ | ||
package store.newsbriefing.app.feature.bookmark | ||
|
||
import androidx.navigation.NavController | ||
import androidx.navigation.NavGraphBuilder | ||
import androidx.navigation.compose.composable | ||
|
||
const val bookmarkRoute = "bookmark_route" | ||
|
||
fun NavController.navigateToBookmark() { | ||
navigate(bookmarkRoute) | ||
} | ||
|
||
fun NavGraphBuilder.bookmarkScreen() { | ||
composable( | ||
route = bookmarkRoute | ||
) { | ||
BookmarkRoute() | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
feature/bookmark/src/main/java/store/newsbriefing/app/feature/bookmark/BookmarkScreen.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,13 @@ | ||
package store.newsbriefing.app.feature.bookmark | ||
|
||
import androidx.compose.runtime.Composable | ||
|
||
@Composable | ||
internal fun BookmarkRoute() { | ||
BookmarkScreen() | ||
} | ||
|
||
@Composable | ||
internal fun BookmarkScreen() { | ||
|
||
} |
15 changes: 12 additions & 3 deletions
15
feature/home/src/main/java/store/newsbriefing/app/feature/home/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 |
---|---|---|
@@ -1,11 +1,20 @@ | ||
package store.newsbriefing.app.feature.home | ||
|
||
import androidx.compose.runtime.Composable | ||
import androidx.navigation.NavController | ||
import androidx.navigation.NavGraphBuilder | ||
import androidx.navigation.compose.composable | ||
|
||
const val homeRoute = "home_route" | ||
|
||
fun NavController.navigateToHome() { | ||
navigate(homeRoute) | ||
} | ||
|
||
@Composable | ||
fun HomeNavGraph() { | ||
|
||
fun NavGraphBuilder.homeScreen() { | ||
composable( | ||
route = homeRoute | ||
) { | ||
HomeRoute() | ||
} | ||
} |
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
19 changes: 19 additions & 0 deletions
19
...ewsdetail/src/main/java/store/newsbriefing/app/feature/newsdetail/NewsDetailNavigation.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,19 @@ | ||
package store.newsbriefing.app.feature.newsdetail | ||
|
||
import androidx.navigation.NavController | ||
import androidx.navigation.NavGraphBuilder | ||
import androidx.navigation.compose.composable | ||
|
||
const val NewsDetailRoute = "news_detail_route" | ||
|
||
fun NavController.navigateToNewsDetail() { | ||
navigate(NewsDetailRoute) | ||
} | ||
|
||
fun NavGraphBuilder.newsDetailScreen() { | ||
composable( | ||
route = NewsDetailRoute | ||
) { | ||
NewsDetailRoute() | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
...re/newsdetail/src/main/java/store/newsbriefing/app/feature/newsdetail/NewsDetailScreen.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,13 @@ | ||
package store.newsbriefing.app.feature.newsdetail | ||
|
||
import androidx.compose.runtime.Composable | ||
|
||
@Composable | ||
internal fun NewsDetailRoute() { | ||
NewsDetailScreen() | ||
} | ||
|
||
@Composable | ||
internal fun NewsDetailScreen() { | ||
|
||
} |
19 changes: 19 additions & 0 deletions
19
feature/setting/src/main/java/store/newsbriefing/app/feature/setting/SettingNavigation.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,19 @@ | ||
package store.newsbriefing.app.feature.setting | ||
|
||
import androidx.navigation.NavController | ||
import androidx.navigation.NavGraphBuilder | ||
import androidx.navigation.compose.composable | ||
|
||
const val settingRoute = "setting_route" | ||
|
||
fun NavController.navigateToSetting() { | ||
navigate(settingRoute) | ||
} | ||
|
||
fun NavGraphBuilder.settingScreen() { | ||
composable( | ||
route = settingRoute | ||
) { | ||
SettingRoute() | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
feature/setting/src/main/java/store/newsbriefing/app/feature/setting/SettingScreen.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,13 @@ | ||
package store.newsbriefing.app.feature.setting | ||
|
||
import androidx.compose.runtime.Composable | ||
|
||
@Composable | ||
internal fun SettingRoute() { | ||
SettingScreen() | ||
} | ||
|
||
@Composable | ||
internal fun SettingScreen() { | ||
|
||
} |