Skip to content

Releases: raamcosta/compose-destinations

1.6.30 - Wear OS support! 🙌

30 Dec 11:36
f525514
Compare
Choose a tag to compare
  • 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! 🙌

30 Dec 11:32
d2450a9
Compare
Choose a tag to compare
  • 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

18 Nov 21:57
f7d6eab
Compare
Choose a tag to compare

Changes

1.6.27-beta

18 Nov 21:57
3ba4e25
Compare
Choose a tag to compare

Changes

1.5.27-beta

18 Nov 21:56
aeba321
Compare
Choose a tag to compare

Changes

1.7.26-beta

14 Nov 23:02
e3aeaf2
Compare
Choose a tag to compare

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

14 Nov 23:02
68832f1
Compare
Choose a tag to compare

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

14 Nov 23:01
d66a24b
Compare
Choose a tag to compare

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

02 Nov 21:00
0d662f8
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.6.25-beta

02 Nov 20:59
432461b
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))