Thiago
05/17/2023, 1:22 PMPablichjenkov
05/17/2023, 4:04 PMThiago
05/17/2023, 7:16 PMcore
module. It is the Ktor Server Core module modified to be multi-platform and generic. So, for now, there is no modules for other router systems (Voyager is a multiplatform navigation library, to help with that). Maybe in the future, but is not the main library goal.
To support other routes and Kotlin Routing been the owner, you need to do:
// In a common module
val router = routing {
route(path = "/something") {
handle {
// Your common router behavior
}
}
}
// In an Android Module
router.handle(path = "/android-path") {
// composeNavigator
// ActivityNavigator
// FragmentNavigator
}
// In an iOS Module
router.handle(path = "/ios-path") {
// UINavigationController
}
// In a Web Module
router.handle(path = "/web-path") {
// React Router
// Vuew Router
// Web History API
}
Pablichjenkov
05/17/2023, 7:37 PM