Releases: raamcosta/compose-destinations
Releases · raamcosta/compose-destinations
1.5.25-beta
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
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
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
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