Skip to content

Releases: raamcosta/compose-destinations

1.5.25-beta

02 Nov 20:59
7eb12cc
Compare
Choose a tag to compare

Changes

  • Fixes #279: Implemented support for activity destinations.

Example:

data class OtherActivityNavArgs(
    val otherThing: String,
    val color: Color
)

@SettingsNavGraph
@ActivityDestination(
    navArgsDelegate = OtherActivityNavArgs::class,
)
class OtherActivity: ComponentActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)

        val args = OtherActivityDestination.argsFrom(intent)
        println("OtherActivity args = $args")

        setContentView(ComposeView(this).apply {
            setContent {
                Column(
                    modifier = Modifier.background(args.color)
                ) {
                    Text("OTHER ACTIVITY")
                    Text("ARGS: \n$args")
                }
            }
        })
    }
}

And to navigate to it:

navigator.navigate(OtherActivityDestination(otherThing = "testing", color = Color.Magenta))

1.7.23-beta

25 Oct 21:36
1de819e
Compare
Choose a tag to compare

Changes

  • Fixed issue when NavTypeSerializer uses a typealias as its type argument.
  • Fix Nested and serializable typealiases nav arguments (thanks Martin Jantošovič aka @Mordred)
  • Fix NullPointerException for navArgsDelegate classes coming from class files (thanks Martin Jantošovič aka @Mordred)
  • Navigating back onlyIfResumed option added. (thanks Petr Stetka aka @petrstetka)
  • Fixes #221: adds ksp configuration to choose whether to use annotated composables visibility or default to public.
  • Fixes #263

1.6.23-beta

25 Oct 21:36
8572055
Compare
Choose a tag to compare

Changes

  • Fixed issue when NavTypeSerializer uses a typealias as its type argument.
  • Fix Nested and serializable typealiases nav arguments (thanks Martin Jantošovič aka @Mordred)
  • Fix NullPointerException for navArgsDelegate classes coming from class files (thanks Martin Jantošovič aka @Mordred)
  • Navigating back onlyIfResumed option added. (thanks Petr Stetka aka @petrstetka)
  • Fixes #221: adds ksp configuration to choose whether to use annotated composables visibility or default to public.
  • Fixes #263

1.5.23-beta

25 Oct 21:36
d448099
Compare
Choose a tag to compare

Changes

  • Fixed issue when NavTypeSerializer uses a typealias as its type argument.
  • Fix Nested and serializable typealiases nav arguments (thanks Martin Jantošovič aka @Mordred)
  • Fix NullPointerException for navArgsDelegate classes coming from class files (thanks Martin Jantošovič aka @Mordred)
  • Navigating back onlyIfResumed option added. (thanks Petr Stetka aka @petrstetka)
  • Fixes #221: adds ksp configuration to choose whether to use annotated composables visibility or default to public.
  • Fixes #263

1.7.22-beta

09 Oct 23:24
e6e265b
Compare
Choose a tag to compare

1. Refactored some of the utility functions to correctly account for the possibility of a NavBackStackEntry corresponding to a NavGraph entry and not a Destination one.

2. Fixes #252 : Added Stable annotation to DestinationsNavigator

3. Improved internal route building to use "&" instead of "?" for non mandatory arguments other than the first one. (thanks @Mordred )

4. Fixes #221 : Added explicity types and visibility. Also made generated Destination be declared as internal if corresponding annotated Composable is.

1.6.22-beta

09 Oct 23:23
bd44051
Compare
Choose a tag to compare

1. Refactored some of the utility functions to correctly account for the possibility of a NavBackStackEntry corresponding to a NavGraph entry and not a Destination one.

2. Fixes #252 : Added Stable annotation to DestinationsNavigator

3. Improved internal route building to use "&" instead of "?" for non mandatory arguments other than the first one. (thanks @Mordred )

4. Fixes #221 : Added explicity types and visibility. Also made generated Destination be declared as internal if corresponding annotated Composable is.

1.5.22-beta

09 Oct 23:22
c5d9102
Compare
Choose a tag to compare

1. Refactored some of the utility functions to correctly account for the possibility of a NavBackStackEntry corresponding to a NavGraph entry and not a Destination one.

2. Fixes #252 : Added Stable annotation to DestinationsNavigator

3. Improved internal route building to use "&" instead of "?" for non mandatory arguments other than the first one. (thanks @Mordred )

4. Fixes #221 : Added explicity types and visibility. Also made generated Destination be declared as internal if corresponding annotated Composable is.

1.7.21-beta

13 Sep 17:29
c22a022
Compare
Choose a tag to compare

Fixed #210 : ViewModel unit test problems with SavedStateHandle.navArgs()

Updated navigation and accompanist dependencies

1.6.20-beta

13 Sep 17:29
edd27ed
Compare
Choose a tag to compare

Fixed #210 : ViewModel unit test problems with SavedStateHandle.navArgs()

Updated navigation dependency

1.5.20-beta

13 Sep 17:28
c13a9c2
Compare
Choose a tag to compare

Fixed #210 : ViewModel unit test problems with SavedStateHandle.navArgs()

Updated navigation dependency