net.zagart.navigation — module: core
| Module | Artifact | Targets |
|---|---|---|
:core | net.zagart.navigation:core | Android, JVM, iOS |
commonMain.dependencies {
implementation("net.zagart.navigation:core:1.0.0")
}
// Define a destination
data class HomeScreen(override val args: Args = Args()) : Destination
// Create controller
val controller = rememberNavigationController(
startDestinations = listOf(HomeScreen())
)
// Wire up the container
NavigationContainer(
controller = controller,
scope = {
screen<HomeScreen> { HomeContent() }
}
)
| Feature | Details |
|---|---|
| Type-safe navigation | Destinations as classes implementing Destination with kotlinx-serialization |
| Backstack management | Multiple independent backstacks (tabs/sections) with state save/restore |
| Animated transitions | Slide and None transitions with configurable duration |
| Predictive back gesture | Supported on Android |
Follows Semantic Versioning with phases: alpha, beta, rc, stable.
version in core/build.gradle.kts./gradlew :core:publishgit tag v1.0.0 && git push origin v1.0.0