-
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.
WTA #71: Updated compose destinations to have multi module set-up.
- Loading branch information
Showing
8 changed files
with
52 additions
and
46 deletions.
There are no files selected for viewing
40 changes: 0 additions & 40 deletions
40
app/src/main/java/com/jacob/wakatimeapp/navigation/AppDestinations.kt
This file was deleted.
Oops, something went wrong.
23 changes: 23 additions & 0 deletions
23
app/src/main/java/com/jacob/wakatimeapp/navigation/NavGraphs.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,23 @@ | ||
package com.jacob.wakatimeapp.navigation | ||
|
||
import com.jacob.wakatimeapp.details.ui.destinations.DetailsPageDestination | ||
import com.jacob.wakatimeapp.home.ui.destinations.HomePageDestination | ||
import com.jacob.wakatimeapp.login.ui.destinations.LoginPageDestination | ||
import com.jacob.wakatimeapp.search.ui.destinations.SearchProjectsDestination | ||
import com.ramcosta.composedestinations.spec.DestinationSpec | ||
import com.ramcosta.composedestinations.spec.NavGraphSpec | ||
|
||
object NavGraphs { | ||
val root = object : NavGraphSpec { | ||
override val route = "root" | ||
|
||
override val startRoute = LoginPageDestination | ||
|
||
override val destinationsByRoute = listOf<DestinationSpec<*>>( | ||
LoginPageDestination, | ||
HomePageDestination, | ||
SearchProjectsDestination, | ||
DetailsPageDestination, | ||
).associateBy { it.route } | ||
} | ||
} |
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
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
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