{"repo":"kiwicom/navigation-compose-typed","free":true,"listed":false,"github":"https://github.com/kiwicom/navigation-compose-typed","clone":"git clone https://github.com/kiwicom/navigation-compose-typed.git","description":"Type-safe arguments for Jetpack Navigation Compose using Kotlinx.Serialization","language":"Kotlin","stars":235,"topics":["kotlin","android-library","arguments","jetpack-compose","kotlin-library","safeargs","typesafe","kotlinx-serialization-library","jetpack-navigation-compose"],"license":"MIT","category":"mobile-apps","readme_excerpt":"Navigation Compose Typed ======================== Compile-time type-safe arguments for the Jetpack Navigation Compose library. Based on KotlinX.Serialization. Major features: - Complex types' support, including nullability for primitive types - the only condition is that the type has to be serializable with KotlinX.Serializable library. - Based on the official Kotlin Serialization compiler plugin - no slowdown with KSP or KAPT. - All Jetpack Navigation Compose features: e.g. navigateUp() after a deeplink preserves the top-level shared arguments. - Few simple functions, no new complex NavHost or NavController types; this allows covering other Jetpack Navigation Compose extensions. - Gradual integration, feel free to onboard just a part of your app. Watch the talk about this library and its implementation details: QuickStart Add this library dependency and KotlinX.Serialization support Warning This library uses Semantic Versioning. Be aware that BC breaks are allowed in minor versions before the major 1.0 version. Create app's destinations and use them in the navigation graph definition Now, it is time to navigate! Create a Destination instance and pass it to the navigate extension method on the standard NavController . ViewModel You can pass your destination arguments directly from the UI using parameters/the assisted inject feature. For example, in Koin: Alternatively, you can read your destination from a SavedStateHandle instance: Extensibility What about cooperation with Ac","default_branch":null,"files":null,"tree":[],"storefront":"/r/kiwicom","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/kiwicom/navigation-compose-typed/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}