Releases: raamcosta/compose-destinations
Releases · raamcosta/compose-destinations
1.6.30 - Wear OS support! 🙌
- Added support for Wear OS! Thanks to @yschimke who did most of the work 🙇
To use it, import the corresponding core dependency:
implementation 'io.github.raamcosta.compose-destinations:wear-core:1.7.30-beta'
Then create a wear os NavHostEngine and pass it to the DestinationsNavHost composable:
val engine = rememberWearNavHostEngine()
DestinationsNavHost(
engine = engine,
//... same thing as with normal lib usage
)
Full Changelog: 1.6.27-beta...1.6.30-beta
1.5.30 - Wear OS support! 🙌
- Added support for Wear OS! Thanks to @yschimke who did most of the work 🙇
To use it, import the corresponding core dependency:
implementation 'io.github.raamcosta.compose-destinations:wear-core:1.7.30-beta'
Then create a wear os NavHostEngine and pass it to the DestinationsNavHost composable:
val engine = rememberWearNavHostEngine()
DestinationsNavHost(
engine = engine,
//... same thing as with normal lib usage
)
Full Changelog: 1.5.27-beta...1.5.30-beta
1.7.27-beta
Changes
- Fixed #298
1.6.27-beta
Changes
- Fixed #298
1.5.27-beta
Changes
- Fixed #298
1.7.26-beta
Changes
- Created a
Direction
impl data class which will enable comparisons of two Directions with normal equals (or "=="). Especially useful in unit tests - Changed base64 related methods to not depend on android (except on older API devices). This enables route related code to run on unit tests (no roboelectric, only jvm).
- Fixed #288 (thanks @hrafnthor 🙏 )
- Updated dependency versions (including navigation and compose)
1.6.26-beta
Changes
- Created a
Direction
impl data class which will enable comparisons of two Directions with normal equals (or "=="). Especially useful in unit tests - Changed base64 related methods to not depend on android (except on older API devices). This enables route related code to run on unit tests (no roboelectric, only jvm).
- Fixed #288 (thanks @hrafnthor 🙏 )
- Updated dependency versions (including navigation and compose)
1.5.26-beta
Changes
- Created a
Direction
impl data class which will enable comparisons of two Directions with normal equals (or "=="). Especially useful in unit tests - Changed base64 related methods to not depend on android (except on older API devices). This enables route related code to run on unit tests (no roboelectric, only jvm).
- Fixed #288 (thanks @hrafnthor 🙏 )
- Updated dependency versions
1.7.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.6.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))