Skip to content

Commit

Permalink
Merge pull request #16 from LanarsInc/develop
Browse files Browse the repository at this point in the history
Release 1.3.0
  • Loading branch information
gsrocks-lanars authored Oct 24, 2022
2 parents 21d88f2 + 6096fe2 commit a8c7fe1
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ plugins {

allprojects {
group = "com.lanars"
version = "1.2.4"
version = "1.3.0"
}

subprojects {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import androidx.navigation.compose.NavHost
import androidx.navigation.compose.composable
import androidx.navigation.compose.navigation
import androidx.navigation.compose.rememberNavController
import com.lanars.compose_easy_route.core.model.NavDirection
import com.lanars.compose_easy_route.navigation.options.NavigationOptions
import kotlinx.coroutines.flow.receiveAsFlow
import kotlinx.coroutines.launch
Expand All @@ -20,7 +19,7 @@ import kotlinx.coroutines.launch
fun EasyRouteNavHost(
navigationManager: NavigationManager,
navGraph: NavigationGraph,
startDirection: NavDirection,
startDestination: NavDestination,
modifier: Modifier = Modifier
) {
val navController = rememberNavController()
Expand Down Expand Up @@ -88,7 +87,7 @@ fun EasyRouteNavHost(

NavHost(
navController = navController,
startDestination = startDirection.route,
startDestination = startDestination.fullRoute,
modifier = modifier
) {
buildGraphs(navGraph, navController)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class MainActivity : ComponentActivity() {
EasyRouteNavHost(
navigationManager = navigationManager,
navGraph = NavGraphs.root,
startDirection = FirstPageDestination()
startDestination = FirstPageDestination
)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ fun SecondPage(
EasyRouteNavHost(
navigationManager = navigationManager,
navGraph = NavGraphs.bottomNavigation,
startDirection = BooksScreenDestination()
startDestination = BooksScreenDestination
)
}
}
Expand Down

0 comments on commit a8c7fe1

Please sign in to comment.