freeletics/khonshu

Replace NavDestination annotations

Closed this issue · 0 comments

Instead add separate versions of the regular @Compose... and @Renderer... annotations where

  • scope has KClass<out NavRoute> as type (with this the route class will be used as a scope marker, so there is no need to create an extra marker class)
  • add destinationType: DestinationType parameter that defaults to DestinationType.Screen
  • add destinationScope: KClass<*> parameter