AndroidX Navigation

Frameworks & LibrariesAI extracted

AndroidX's Navigation component: navigation graphs, Safe Args and Navigation Compose.

Latest 2.10.2 · by GoogleWebsiteRSS

Release activity

Release activity — 14 releases across 13 days in the last year. Each cell is one day; darker means more releases that day. Older weeks are hidden at this screen width.
AugSepOctNov
SundayNo releases on Jul 19, 2026No releases on Jul 26, 2026No releases on Aug 2, 2026No releases on Aug 9, 2026No releases on Aug 16, 2026No releases on Aug 23, 2026No releases on Aug 30, 2026No releases on Sep 6, 2026No releases on Sep 13, 2026No releases on Sep 20, 2026No releases on Sep 27, 2026No releases on Oct 4, 2026No releases on Oct 11, 2026No releases on Oct 18, 2026No releases on Oct 25, 2026No releases on Nov 1, 2026
MondayNo releases on Jul 20, 2026No releases on Jul 27, 2026No releases on Aug 3, 2026No releases on Aug 10, 2026No releases on Aug 17, 2026No releases on Aug 24, 2026No releases on Aug 31, 2026No releases on Sep 7, 2026No releases on Sep 14, 2026No releases on Sep 21, 2026No releases on Sep 28, 2026No releases on Oct 5, 2026No releases on Oct 12, 2026No releases on Oct 19, 2026No releases on Oct 26, 2026No releases on Nov 2, 2026
TuesdayNo releases on Jul 21, 2026No releases on Jul 28, 2026No releases on Aug 4, 2026No releases on Aug 11, 2026No releases on Aug 18, 2026No releases on Aug 25, 2026No releases on Sep 1, 2026No releases on Sep 8, 2026No releases on Sep 15, 2026No releases on Sep 22, 2026No releases on Sep 29, 2026No releases on Oct 6, 2026No releases on Oct 13, 2026No releases on Oct 20, 2026No releases on Oct 27, 2026No releases on Nov 3, 2026
WednesdayNo releases on Jul 22, 20261 release on Jul 29, 2026No releases on Aug 5, 20261 release on Aug 12, 2026No releases on Aug 19, 20261 release on Aug 26, 2026No releases on Sep 2, 20261 release on Sep 9, 2026No releases on Sep 16, 20261 release on Sep 23, 2026No releases on Sep 30, 2026No releases on Oct 7, 2026No releases on Oct 14, 2026No releases on Oct 21, 2026No releases on Oct 28, 2026No releases on Nov 4, 2026
ThursdayNo releases on Jul 23, 2026No releases on Jul 30, 2026No releases on Aug 6, 2026No releases on Aug 13, 2026No releases on Aug 20, 2026No releases on Aug 27, 2026No releases on Sep 3, 2026No releases on Sep 10, 2026No releases on Sep 17, 2026No releases on Sep 24, 2026No releases on Oct 1, 2026No releases on Oct 8, 2026No releases on Oct 15, 2026No releases on Oct 22, 2026No releases on Oct 29, 2026No releases on Nov 5, 2026
FridayNo releases on Jul 24, 2026No releases on Jul 31, 2026No releases on Aug 7, 2026No releases on Aug 14, 2026No releases on Aug 21, 2026No releases on Aug 28, 2026No releases on Sep 4, 2026No releases on Sep 11, 2026No releases on Sep 18, 2026No releases on Sep 25, 2026No releases on Oct 2, 2026No releases on Oct 9, 2026No releases on Oct 16, 2026No releases on Oct 23, 2026No releases on Oct 30, 2026No releases on Nov 6, 2026
SaturdayNo releases on Jul 25, 2026No releases on Aug 1, 2026No releases on Aug 8, 2026No releases on Aug 15, 2026No releases on Aug 22, 2026No releases on Aug 29, 2026No releases on Sep 5, 2026No releases on Sep 12, 2026No releases on Sep 19, 2026No releases on Sep 26, 2026No releases on Oct 3, 2026No releases on Oct 10, 2026No releases on Oct 17, 2026No releases on Oct 24, 2026No releases on Oct 31, 2026No releases on Nov 7, 2026

14 releases in the last year, busiest day 2

Branches

2.10
2.10.2
2.9
2.9.8

Changelog

Filter releases by branch
73 of 73 releases

2.10.2

Latest
Changed 1
  • Updated androidx.lifecycle dependencies to version 2.10.0.

From AndroidX Navigation

Dependency Updates Updated androidx.lifecycle dependencies to version 2.10.0. I4505a9f9a

View originalPermalink
How 2.10.2 went

2.10.1

Fixed 1
  • NavHost now also skips the sizeTransform as part of a skipped animation, preventing unexpected clipping.
View originalRead the notes
How 2.10.1 went

2.10.0

Added 3
  • NavHost provides an overload that accepts predictivePopEnterTransition and predictivePopExitTransition parameters to allow custom transitions during the predictive back gesture.
  • NavBackStackEntryInfo exposes back stack snapshots during navigation events to enable richer custom predictive back animations.
  • The navigation-common, navigation-runtime, and navigation-testing modules support desktop, linux, macOS, iOS, javascript, WASM, watchos, and tvos.
Changed 1
  • handleDeepLink only handles recognized deep links and ignores all others.
View originalRead the notes
How 2.10.0 went

2.10.0-rc01

Changed 1
  • The minimum SDK for Navigation has been raised to API 24, along with the rest of the AndroidX libraries
View originalRead the notes
How 2.10.0-rc01 went

2.10.0-beta01

Added 2
  • Introduce NavBackStackEntryInfo to expose back stack snapshots during navigation events
  • NavBackStackEntryInfo enables richer custom predictive back animations
View originalRead the notes
How 2.10.0-beta01 went

2.10.0-alpha06

Changed 2
  • handleDeepLink is modified to ensure only recognized deep links are handled
  • ComposableFragment uses the fully qualified name from the destination instead of a fragment argument to inflate composable functions
Fixed 2
  • A crash in FragmentNavigator that caused legitimate Fragments to throw an IllegalArgumentException when operations are optimized out is fixed
  • An error in Navigation with Fragments where setting the graph programmatically would fail to be restored properly is fixed
View originalRead the notes
How 2.10.0-alpha06 went

2.10.0-alpha04

Fixed 1
  • NavHost is hardened against possible NullPointerExceptions caused by a race condition with predictive back.
View originalRead the notes
How 2.10.0-alpha04 went

2.9.8

Fixed 1
  • Improved NavHost to guard against possible NullPointerExceptions caused by a race condition with predictive back.
View originalRead the notes
How 2.9.8 went

2.10.0-alpha03

Added 1
  • Added watchos and tvos targets to the navigation-common, navigation-runtime and navigation-testing modules
Changed 1
  • Made DefaultNavTransitions public
Fixed 1
  • Updated Compose compileSdk to API 37, which requires a minimum AGP version of 9.2.0 when using Compose
View originalRead the notes
How 2.10.0-alpha03 went

2.10.0-alpha01

Added 2
  • NavHost now provides an overload that accepts predictivePopEnterTransition and predictivePopExitTransition parameters to allow for custom transitions during the predictive back gesture.
  • navigation-common, navigation-runtime, and navigation-testing now support desktop, Linux, macOS, iOS, JavaScript, and WASM in addition to Android.
Changed 1
  • The default minSdk has been raised from API 21 to API 23, along with the rest of the AndroidX libraries.
View originalRead the notes
How 2.10.0-alpha01 went

2.9.7

Fixed 2
  • Navigation SafeArgs no longer has configuration caching issues when being used with Google Services.
  • The test SavedStateHandle constructor in navigation-testing now decodes List<String>.
View originalRead the notes
How 2.9.7 went

2.9.6

Changed 2
  • The Navigation SafeArgs plugin has been migrated to the modern Android Gradle Plugin APIs to ensure compatibility with all AGP 8.4.2+ releases.
  • The output directory for files generated by the Navigation SafeArgs plugin has been changed to the default location provided by AGP.
Fixed 1
  • The Navigation SafeArgs plugin no longer requires setting the useAndroidX property when used with AGP 9.0.0-alpha04+.
View originalRead the notes
How 2.9.6 went

2.9.5

Changed 1
  • The Navigation Safe Args Plugin now depends on Android Gradle Plugin version 8.4.2.
Fixed 1
  • Navigation Safe Args can now handle AGP 9.0's support for builtin kotlin.
View originalRead the notes
How 2.9.5 went

2.9.4

Fixed 1
  • Prevent crash when a predictive back event is delivered mid-frame after the handler was disabled in a NavHost transition.
View originalRead the notes
How 2.9.4 went

2.9.3

Fixed 2
  • Fixed a ConcurrentModificationException in NavController when using OnDestinationChangedListeners.
  • Fixed navigate(uri, navOptions, navigationExtras) ignoring the provided navigation extras.
View originalRead the notes
How 2.9.3 went

2.9.2

Fixed 2
  • Fixed an issue with the entry not resuming when the dialog above the entry is dismissed
  • Fixed MissingFieldException error when testing SavedStateHandle with type safe routes while using custom NavTypes.
View originalRead the notes
How 2.9.2 went

2.9.1

Fixed 1
  • Fixed an issue that caused NavEntries that were instantiated using single top to never go beyond CREATED in their Lifecycle.State
View originalRead the notes
How 2.9.1 went

2.9.0

Added 5
  • Custom Navigators can mark their destinations as implementing the SupportingPane interface to indicate they are shown alongside other destinations, allowing multiple destinations to be RESUMED at the same time
  • A new common NavController.handleDeepLink() function that takes a NavDeepLinkRequest instead of an Intent, allowing platforms other than Android to handle deep links
  • NavUri, a new common parser function that is a compatible API for Android's URI on other platforms, enabling platform-agnostic URI creation
  • Non-reified versions of the type safe APIs that were previously only accessible via reified methods such as composable<YourScreen>, which take a KClass instance directly
  • Navigation type safety support for value classes as a route or as the argument type of a route
Changed 1
  • Navigation Safe Args actions are now generated with the @CheckResult annotation to ensure they are used
View originalRead the notes
How 2.9.0 went

2.9.0-rc01

Added 1
  • Stubs for non-Android platforms are now provided instead
Removed 1
  • Removed all non-Android platform targets from Jetpack Navigation, as those targets did not actually work
View originalRead the notes
How 2.9.0-rc01 went

2.9.0-beta01

Changed 2
  • The common API of parseStringAsNavUri has been changed to a NavUri factory function that takes a String.
  • This library now targets Kotlin 2.0 language level and requires KGP 2.0.0 or newer.
View originalRead the notes
How 2.9.0-beta01 went

2.9.0-alpha09

Added 2
  • The navigation-testing module now supports desktop, Linux, macOS and iOS in addition to Android.
  • NavType is now supported on desktop, Linux, macOS and iOS in addition to Android.
View originalRead the notes
How 2.9.0-alpha09 went

2.9.0-alpha08

Added 1
  • Added a new common parser function to create a NavUri
Fixed 1
  • Fixed a regression from Navigation 2.8.8 that required a deep link to match all fields of a deep link request or intent exactly, which broke deep links with partial field matches
View originalRead the notes
How 2.9.0-alpha08 went

2.8.9

Fixed 1
  • Fixed a regression in Navigation 2.8.8 where deep links required all fields of a deep link request or intent to match exactly, causing deep links with partial field matches to stop working
View originalRead the notes
How 2.8.9 went

2.8.8

Fixed 2
  • Fixed a bug where routes with wildcard paths did not match with an added deeplink
  • NavDeepLink matching now requires a deeplink and a deeplink request to match exactly on uri, action, and mime, and no longer matches when only one or two of those fields match
View originalRead the notes
How 2.8.8 went

2.9.0-alpha07

Changed 1
  • Extracted the navigation-common, navigation-runtime, and navigation-compose APIs to the common platform.
Fixed 3
  • Fixed an issue where attempting to saveState with non-inclusive pop would result in a null savedState that could cause a crash on restoration.
  • NavDeepLink matching now requires a deeplink and a deeplink request to match exactly on uri, action, and mime; matching is no longer allowed if only one or two fields match.
  • Fixed a bug where routes with wildcard paths do not match with an added deeplink.
View originalRead the notes
How 2.9.0-alpha07 went

2.8.7

Fixed 1
  • Navigation Safe Args now provides support for composable destinations.
View originalRead the notes
How 2.8.7 went

2.9.0-alpha06

Added 1
  • Navigation Safe Args now provides support for composable destinations.
Changed 1
  • Navigation Safe Args actions are now generated with the @CheckResult annotation to ensure they are used.
Fixed 1
  • Fixed an error in NavController where the backStack states were incorrectly attempted to be restored into an array when they were saved into a list.
View originalRead the notes
How 2.9.0-alpha06 went

2.9.0-alpha05

Fixed 4
  • Fixed an issue that caused an unexpected scale animation when using Navigation Compose.
  • NavDestination labels provided through XML are parsed via NavType.get so that custom NavType logic is respected.
  • When navigating to an activity with dataPattern, ActivityNavigator now encodes the argument value with the argument's NavType.
  • Fixed an issue that caused an unexpected scale animation when using Navigation Compose and calling navigate in the same frame that the current animation is ending.
View originalRead the notes
How 2.9.0-alpha05 went

2.8.6

Fixed 2
  • NavDestination labels provided through XML are parsed via NavType.get so that custom NavType logic is respected.
  • When navigating to an activity with dataPattern, ActivityNavigator encodes the argument value with the argument's NavType.
View originalRead the notes
How 2.8.6 went

2.8.5

Added 1
  • Navigation type safety supports List<Enum> as an argument type of a route without requiring any custom NavType
Fixed 4
  • NavHost could throw an exception inside of the PredictiveBackHandler when the back stack is popped down to 1 entry and a system back is triggered in the same frame
  • NavDestination NullPointerException when updating a graph's startDestination
  • Unexpected scale animation when using Navigation Compose and calling navigate in the same frame that the current animation is ending
  • ConcurrentModificationException that could occur when a LifecycleObserver attached to a NavBackStackEntry triggers a change to the back stack while the host LifecycleOwner changes its lifecycle state
View originalRead the notes
How 2.8.5 went

2.9.0-alpha04

Added 2
  • Non-reified versions of the type safe APIs that previously were only accessible via reified methods (e.g., composable<YourScreen>) now directly take a KClass instance.
  • Navigation type safety supports List<Enum> as an argument type of a route without requiring any custom NavType.
Changed 1
  • The Kotlin-specific NavGraph.setStartDestination overload for type safety is hidden from Java sources.
Fixed 2
  • NavHost could throw an exception inside of the PredictiveBackHandler when the back stack is popped down to 1 entry and a system back is triggered in the same frame.
  • NavDestination NullPointerException when updating a graph's startDestination.
View originalRead the notes
How 2.9.0-alpha04 went

2.8.4

Added 1
  • Navigation type safety now supports value class as route or as the argument type of a route
Fixed 1
  • Attempting to use a NavController that has been previously DESTROYED will now cause an IllegalStateException
View originalRead the notes
How 2.8.4 went

2.9.0-alpha03

Added 1
  • Navigation type safety now supports value classes as a route or as the argument type of a route
Fixed 1
  • Fixed a ConcurrentModificationException that could occur when a LifecycleObserver attached to a NavBackStackEntry triggers a change to the back stack when the host LifecycleOwner such as the containing Activity or Fragment changes its lifecycle state
View originalRead the notes
How 2.9.0-alpha03 went

2.9.0-alpha02

Added 1
  • New common NavController.handleDeepLink(request: NavDeepLinkRequest) method
View originalRead the notes
How 2.9.0-alpha02 went

2.9.0-alpha01

Added 2
  • Custom Navigators can mark their destinations as implementing the SupportingPane interface to indicate they are shown alongside other destinations, allowing multiple destinations to be RESUMED at the same time.
  • Lint checks for the navigation-common, navigation-runtime, and navigation-compose modules that identify type-safe routes not correctly annotated with @Serializable, applied to all NavGraphBuilder and NavDeepLinkBuilder extension functions.
View originalRead the notes
How 2.9.0-alpha01 went

2.8.3

Added 2
  • Added new lint checks for the navigation-common, navigation-runtime, and navigation-compose modules to identify type-safe routes that are not correctly annotated with @Serializable, applied to all NavGraphBuilder and NavDeepLinkBuilder extension functions.
  • Added new lint checks for the navigation-common, navigation-runtime, and navigation-compose modules to identify type-safe routes with Enum arguments that are not correctly annotated with @Keep, applied to all NavGraphBuilder and NavDeepLinkBuilder extension functions.
Fixed 1
  • Fixed an issue where the new lint rules added in Navigation 2.8.* would cause an Obsolete custom lint check error when running lint with Android Gradle Plugin 8.4+.
View originalRead the notes
How 2.8.3 went

2.8.2

Added 1
  • Navigation Type Safety now supports Serializable classes that include a Double, Double?, DoubleArray, DoubleArray?, List<Double>, and List<Double>? without requiring any custom NavType
Changed 1
  • Improved the error message for when Navigation fails to map a route's argument to a NavType, the new error message will contain the argument name, argument fully qualified name, and the route's fully qualified name
View originalRead the notes
How 2.8.2 went

2.8.1

Added 1
  • Added a new lint rule to ensure the use of the popBackStack function that takes a reified class type when attempting to popBackStack using type-safe APIs.
Changed 3
  • Navigation now requires that the route passed to a NavGraph's startDestination contains the values for all required arguments, which includes arguments that are non-nullable and have no default value.
  • Navigation Safe Args now depends on Kotlin 1.9.24 rather than Kotlin 2.X, so developers are not forced to update.
  • Navigation Compose now depends on Compose 1.7.2.
Fixed 1
  • Navigation Safe Args now parses "null" values for non-nullable String types as is and stores them into the bundle, instead of parsing them into a null object; nullable strings remain unchanged.
Security 1
  • A NavDestination can no longer be deeplinked into except through a deep link that was explicitly added to the destination, and navigation to a destination's route is only possible with the navigate overload that takes a string route, fixing a vulnerability that allowed deep linking to potentially protected destinations.
View originalRead the notes
How 2.8.1 went

2.8.0

Added 5
  • Kotlin DSL type-safety for navigation destinations using Kotlin Serialization, allowing destinations to be defined with serializable objects and data classes
  • Predictive in-app back support in Navigation Compose via the SeekableTransitionState APIs from compose-animation
  • New navigation-fragment-compose artifact with a ComposableNavHostFragment that allows composable destinations to be added to Navigation XML files
  • New CollectionNavType<T> class, a subclass of NavType<T> for collection-based arguments such as lists, arrays, and maps
  • Built-in NavType support for Lists of Int, String, Boolean, Float, and Long
Changed 2
  • Navigation Compose now depends on Compose 1.7.0
  • The default NavType array types (IntArrayType, LongArrayType, FloatArrayType, BoolArrayType, and StringArrayType) now inherit from CollectionNavType
View originalRead the notes
How 2.8.0 went

2.8.0-rc01

Fixed 1
  • Fixed a navigation crash when passing top level Enum classes as type safe arguments.
View originalRead the notes
How 2.8.0-rc01 went

2.8.0-beta07

Added 2
  • Safe args adds a new NavType.EnumType so Enum types no longer require custom NavTypes; the Enum's SerialName must be the default fully qualified name
  • Safe args adds built-in support for nullable argument types Int?, Long?, Float?, Boolean?, and Enum<*>?
Changed 1
  • When navigating to duplicate or shared destinations, navigation prioritizes going to the closest matching destination from the current location in the graph
Fixed 1
  • The NavGraph's startDestination uses the default argument values when the startDestination route passed to the NavGraph is exactly equal to the startDestination.route
View originalRead the notes
How 2.8.0-beta07 went

2.8.0-beta06

Fixed 1
  • The WrongStartDestinationType lint check now detects Companion objects on the passed in class type, so the error is no longer missed.
View originalRead the notes
How 2.8.0-beta06 went

2.8.0-beta05

Fixed 1
  • Fixed a singleTop navigation crash when nested NavGraphs share the same startDestination route
View originalRead the notes
How 2.8.0-beta05 went

2.8.0-beta04

Added 1
  • Navigation now supports navigating with empty strings in path arguments
Changed 2
  • Improved the error message for custom serializers declared directly on class fields via @Serializable(with =...) to clarify that this is currently an unsupported feature
  • The SavedStateHandleFactory test API can now be used in non-Android tests but requires Robolectric to support argument parsing with Bundles
Fixed 4
  • Fixed a crash from restoring state when resuming the app after process death when using Type-Safe Navigation in Compose
  • Fixed an issue in Navigation Compose where, after canceling the Predictive Back Gesture, the NavBackStackEntry the user returns to never returned to the RESUMED Lifecycle State
  • Returning destinations now correctly animate back in instead of snapping into place after a fling when canceling the Predictive Back Gesture in Navigation Compose
  • When using Predictive Back with Navigation Compose, the destination being popped now has the proper z-order and correctly animates on top of the incoming destination
View originalRead the notes
How 2.8.0-beta04 went

2.8.0-beta03

Added 1
  • CollectionNavType has a new abstract emptyCollection() method that can be overridden to handle an empty collection passed in as an argument
Changed 1
  • Added documentation to NavType.serializeAsValue and serializeAsValues highlighting that the final outputs should be Uri encoded
Fixed 1
  • Fixed crash when calling toRoute<T> with a null CollectionNavType argument; the output argument now uses the default value declared on the Serializable class, or the return value of emptyCollection() if there is no default value
View originalRead the notes
How 2.8.0-beta03 went

2.8.0-beta02

Fixed 3
  • Fixed ClassCastException crash when using NavBackStackEntry.toRoute with a nullable custom NavType
  • Fixed Navigation back stack state restoration issues caused when attempting to restore a back stack entry that is not reachable via id from the current destination, which also affected destinations built with routes
  • Fixed crash caused by calling clearBackStack() that had the same underlying back stack restoration issue
View originalRead the notes
How 2.8.0-beta02 went

2.8.0-beta01

Added 1
  • Added a test API to navigation-testing to create a SavedStateHandle from a Kotlin Serializable object
Changed 1
  • SavedStateHandle.toRoute() now takes in a typeMap parameter for custom argument types
Fixed 1
  • Missing parameter docs for Navigation Kotlin DSL functions have been added
View originalRead the notes
How 2.8.0-beta01 went

2.8.0-alpha08

Added 2
  • The navigation-fragment-compose artifact provides a LocalFragment composition local accessible to composable methods within a ComposableFragment
  • NavType has built-in support for Lists of Int, String, Boolean, Float, and Long
Changed 1
  • Previously experimental APIs supporting compile time type safety for Navigation Compose and the Navigation Kotlin DSL based on Kotlin Serialization are now stable
View originalRead the notes
How 2.8.0-alpha08 went

2.8.0-alpha07

Added 4
  • Add a new navigation-fragment-compose artifact that includes a ComposableNavHostFragment, an alternative to NavHostFragment that allows composable destinations to be added to Navigation XML files.
  • Composable destinations are declared as top-level, no-argument @Composable methods whose fully qualified name is used as the android:name attribute on each destination.
  • Navigating to a composable destination creates a containing fragment to display the composable content.
  • Continue adding Safe Args support to Navigation Compose using an approach based on Kotlin Serialization.
Changed 1
  • Safe Args APIs for Navigation Compose are marked with the ExperimentalSafeArgsApi annotation, which will be removed in a future release once the API surface is complete.
View originalRead the notes
How 2.8.0-alpha07 went

2.8.0-alpha06

Added 1
  • Begin support for Safe Args in Navigation Compose using an approach based on Kotlin Serialization, marked with the ExperimentalSafeArgsApi annotation as the APIs are not yet finished
Changed 1
  • NavHost now uses Alignment.TopStart as the default contentAlignment argument, aligning it with the default for AnimatedContent
Fixed 2
  • NavHost no longer shows an unexpected scale from center transition in some instances due to the contentAlignment default
  • NavHost now correctly completes the custom transition when flicking the predictive back gesture while using Navigation Compose, instead of immediately finishing
View originalRead the notes
How 2.8.0-alpha06 went

2.8.0-alpha05

Added 3
  • Arguments can be passed to a NavGraph's startDestination directly in the startDestination route without relying on defaultValue, including for nested NavGraph startDestinations
  • New abstract CollectionNavType<T> class, a subclass of NavType<T>, for collection-based arguments such as lists, arrays, and maps
  • NavType provides a new open valueEquals API that determines whether two values of the same type are equal
Changed 1
  • All default NavType arrays (IntArrayType, LongArrayType, FloatArrayType, BoolArrayType, and StringArrayType) are now of type CollectionNavType
Fixed 2
  • Query parameters in deep links now accept values in the form of curly braces around an argument name (e.g. {argName}) as valid values for string-based NavTypes, instead of treating such values as invalid or absent for all types
  • NavController functions that support routes, such as navigate or popBackStack, now properly match routes filled with arguments of Array NavTypes
View originalRead the notes
How 2.8.0-alpha05 went

2.8.0-alpha04

Added 1
  • You can now specify the SizeTransform for your transitions in Navigation Compose by defining them as part of the initialization for the composable and/or navigation functions.
Fixed 1
  • Fixed an issue where NavHost in Compose Navigation failed to properly show the transition when using System Back without a gesture.
View originalRead the notes
How 2.8.0-alpha04 went

2.8.0-alpha03

Changed 2
  • NavBackStackEntry.savedStateHandle is now marked as @MainThread because it uses code that is required to be on the main thread anyway
  • Navigation Compose now depends on Compose 1.7.0-alpha03
Fixed 1
  • NavGraph ViewModels were DESTROYED too soon because the associated entry's ViewModel was not part of the saved state
View originalRead the notes
How 2.8.0-alpha03 went

2.8.0-alpha02

Added 1
  • Navigation Compose supports Predictive in-app back via the new SeekableTransitionState APIs from compose-animation, letting the back gesture preview the previous destination with a custom Transition before the navigation is committed or cancelled.
View originalRead the notes
How 2.8.0-alpha02 went

2.7.7

Fixed 2
  • Fixed a BackStackState leak where multiple saveState() calls on a single NavBackStackEntry would save multiple states, but only the first saved state could be restored.
  • Fixed an issue where non-String arguments were not properly displayed when using the NavigationUI helpers to populate the title of app bars.
View originalRead the notes
How 2.7.7 went

2.8.0-alpha01

Changed 1
  • Navigation Compose now depends on Compose 1.7.0-alpha01, fixing an issue that could cause an unexpected scale animation
Fixed 2
  • Fixed BackStackState leak where multiple saveState calls on a destination would result in multiple states being saved, but only the first one could be restored
  • Fixed an issue where non-String arguments would not be properly displayed when using the NavigationUI helpers to populate the title of app bars
View originalRead the notes
How 2.8.0-alpha01 went

2.7.6

Fixed 1
  • NavGraph equals() now correctly considers the nodes of the other graph instead of only the calling graph, so graphs with nodes having different ids are no longer considered equal
View originalRead the notes
How 2.7.6 went

2.7.5

Changed 3
  • Greatly improved the performance, in both time and number of allocations, of comparing two graphs so that calls such as setGraph are much faster and result in fewer skipped frames
  • NavHost renders the start destination on the first composition pass instead of waiting for the second pass to read updated state
  • Navigation with Fragments now depends on Fragment 1.6.2, fixing an issue where the ViewModel instances of nested fragments were not cleared when calling clearBackStack
Fixed 4
  • Back stack is no longer popped when setGraph is called more than once with the exact same graph, only if a destination in the graph contains an action linking two destinations
  • Dialogs that were navigated to and dismissed in quick succession no longer leak into the list of NavController.visibleEntries
  • A popped entry's ViewModel is now cleared properly when a configuration change follows the pop and saveState is false
  • NavController no longer handles the same deep link more than once when the back stack was empty before a configuration change or setGraph call, and the incoming Intent had the FLAG_ACTIVITY_NEW_TASK flag set
View originalRead the notes
How 2.7.5 went

2.7.4

Added 1
  • Support for popUpTo to use routes with arguments, allowing popping back to a specific entry that uses those exact arguments, matching the support found in popBackStack
Fixed 3
  • FragmentNavigator no longer crashes when a navigate with popUpTo is interrupted by another navigate
  • currentDestination is now updated correctly to match the displayed Fragment when the system back press is used
  • DialogFragment lifecycle now properly moves to the RESUMED state when the dialog above it is dismissed
View originalRead the notes
How 2.7.4 went

2.7.3

Fixed 2
  • Fixed an issue in Navigation with Fragments that caused the visibleEntries list to contain incorrect entries
  • Fixed an issue that caused Floating Window destinations (i.e. Dialogs, Bottomsheets, etc) to never receive a RESUMED Lifecycle callback
View originalRead the notes
How 2.7.3 went

2.7.2

Changed 1
  • Navigation Compose now depends on Compose 1.5.1
Fixed 4
  • Fixed an interaction between rememberSaveable and Navigation Compose's NavHost that prevented rememberSaveable state of destinations and ViewModel-owned SavedStateHandle instances from being properly restored after process death and recreation, by depending on Lifecycle 2.6.2
  • Fixed partially obscured dialogs in Navigation Compose being in the CREATED Lifecycle state instead of STARTED when multiple dialogs are shown simultaneously
  • Fixed the new topmost dialog remaining stuck in the STARTED Lifecycle state instead of moving to RESUMED when the topmost dialog is dismissed in Navigation Compose
  • Navigation Safe Args no longer instantiates its task eagerly when the task is not actually being executed
View originalRead the notes
How 2.7.2 went

2.7.1

Fixed 1
  • Fixed an issue in Navigation with Compose where using a Scaffold could cause an error when trying to access a Lifecycle.State.DESTROYED ViewModel.
View originalRead the notes
How 2.7.1 went

2.7.0

Added 1
  • NavHost in Navigation Compose now supports custom transitions previously available only in AnimatedNavHost, moved back from Accompanist Navigation Animation now that AnimatedContent is stable
Changed 1
  • Navigation Compose now depends on Compose 1.5.0 instead of 1.1.0
Fixed 1
  • NavHost in Navigation Compose now correctly intercepts system back calls even after the Activity has been STOPPED and RESUMED
View originalRead the notes
How 2.7.0 went

2.7.0-rc01

Fixed 1
  • Fixed an issue where the EnterTransition and ExitTransition lambdas created as part of the NavHost could potentially remain in memory even after the NavHost is removed from composition.
View originalRead the notes
How 2.7.0-rc01 went

2.7.0-beta02

Fixed 1
  • Navigation Compose now has the right z-order for custom transitions that use navigate with the popUpTo option
View originalRead the notes
How 2.7.0-beta02 went

2.7.0-beta01

Fixed 1
  • NavHost in Navigation Compose now correctly intercepts system back calls even after the Activity has been STOPPED and RESUMED
View originalRead the notes
How 2.7.0-beta01 went

2.6.0

Added 7
  • NavDeepLink supports default values for arrays, allowing repeated query params to map to the argument's array type
  • NavType includes a default method that can be overridden to combine two parsed values
  • Custom NavType subclasses can override serializeAsValue to serialize a value into a String, with serialization and deserialization encapsulated in the NavType class
  • NavController.popBackStack(route), getBackStackEntry(route), and clearBackStack(route) support routes with arguments partially or fully filled in, requiring an exact match with the entry's arguments
  • Creating an empty NavDeepLink with the navDeepLink Kotlin DSL now produces a lint warning that a deep link needs a uri, action, and/or mimetype to be valid
  • The exact string ${applicationId} used as a placeholder in app:data and app:dataPattern in a navigation XML activity element is automatically filled with the context's packageName on inflation
  • The new isTopLevelDestination function on AppBarConfiguration exposes top level destination checks to app code
Changed 10
  • NavBackStackEntry arguments and arguments passed to an OnDestinationChangedListener are now a copy of the immutable arguments created at navigation time, so changes to those Bundles are not reflected in later accesses or other listeners
  • StringType overrides serializeAsValue to call Uri.encode on the given String
  • Previewing a composable with NavHost now shows the NavGraph's startDestination by default
  • NavHostFragment no longer intercepts the system back button, allowing the underlying FragmentManager to handle system back and enabling In-App Predictive Back animation with Fragment 1.7.0-alpha01+ on Android U
  • Manually adding a fragment to the FragmentManager's back stack via FragmentTransaction now throws an IllegalArgumentException; fragments should be added via the navigate() API
  • FragmentNavigator uses transition APIs when navigating and popping, so NavBackStackEntry Lifecycle waits for entering and exiting fragment special effects to complete before moving to its final Lifecycle.State
Fixed 1
  • Passing a navigation graph's ID to AppBarConfiguration now only treats the graph's start destination as a top level destination, instead of marking every destination in the graph as top level
View originalRead the notes
How 2.6.0 went

2.6.0-rc02

Fixed 1
  • Fixed an issue with Navigation in Fragments where navigating with popUpTo and popping a fragment off the back stack without recreating its view would cause system back to stop working.
View originalRead the notes
How 2.6.0-rc02 went

2.7.0-alpha01

Added 1
  • Custom enter and exit transitions previously supported by AnimatedNavHost are now supported directly in NavHost in Navigation Compose, following the move of animation code from Accompanist Navigation Animation.
View originalRead the notes
How 2.7.0-alpha01 went

2.6.0-rc01

Fixed 1
  • Fixed an issue in Navigation with fragments where removing a fragment via navigate with popUpTo in its onResume() lifecycle callback would cause an IllegalStateException.
View originalRead the notes
How 2.6.0-rc01 went

2.6.0-beta01

Added 1
  • NavBackStackEntry now provides a custom toString implementation.
Fixed 2
  • Manually adding a fragment to the FragmentManager's back stack via FragmentTransaction when using Navigation with Fragments now throws an IllegalArgumentException; fragments should be added via the navigate() API.
  • When a navigate that adds an entry and a popBackStack that removes it occur in the same frame, the resulting top back stack entry now consistently returns to the RESUMED Lifecycle.State.
View originalRead the notes
How 2.6.0-beta01 went
View all

Discussion