Skip to content

Release 2.0.0

Compare
Choose a tag to compare
@isaac-udy isaac-udy released this 19 Sep 08:46

Enro 2.0.0 introduces some important changes from the 1.x.x branch:

  • Compose destinations are now stable
  • The BottomSheetDestination and DialogDestination interfaces have been deprecated
  • Synthetic destinations can be defined as properties
  • Forward/Replace instructions have been deprecated
  • Both Composables and Fragments now use a shared NavigationContainer type to host navigation
    • See MainActivity.kt or RootFragment.kt for an example of Fragment containers
    • See ListDetailComposable.kt for an example of Composable containers
    • The OnContainer Navigation Instruction has been added, which allows direct backstack manipulation of NavigationContainers
    • NavigationContainers allow advanced functionality such as interceptors and animation overrides
  • deliverResultFromPush/deliverResultFromPresent are new extension functions which allow a screen to delegate it's result to another screen
  • activityResultDestination is a new function which allows ActivityResultContracts to be used directly as destinations