Skip to content

Releases: ryanmoelter/magellanx

0.6.0

23 Dec 00:11
35cffdc

Choose a tag to compare

BREAKING change

  • Automatically attach onBackPressedDispatcher in setContentNavigable(). Now, the only code required to attach Magellan to your MainActivity is setContentNavigable().

Other changes

  • Make compose previews work without using interactive mode for Journeys and nested Steps by @ryanmoelter in #215
  • Bump target and compile SDK level from 34 to 35
  • Update dependencies, including to Kotlin 2.1.0 and Compose BOM to 2024.12.01

Full Changelog: 0.5.2...0.6.0

0.5.2

21 Mar 18:42
3161c59

Choose a tag to compare

What's Changed

  • Update dependencies, including to Kotlin 1.9.23, Compose BOM to 2024.03.00, Compose Compiler to 1.5.11.

Full Changelog: 0.5.1...0.5.2

0.5.1

13 Mar 07:24
b99c3be

Choose a tag to compare

What's Changed

  • Fix unintentional transition when starting a Journey by @ryanmoelter in #133
  • Update some dependencies, including compose BOM to 2024.02.02.

Full Changelog: 0.5.0...0.5.1

0.5.0

03 Mar 02:05
40e8680

Choose a tag to compare

What's Changed

  • Create sample app by @ryanmoelter in #44
  • Pause navigables when they're transitioning out by @ryanmoelter in #123
  • Add Started lifecycle state by @ryanmoelter in #124
  • Update a bunch of dependencies, including compose bom 2024.02.01 and compose compiler to 1.5.10

Full Changelog: 0.4.1...0.5.0

Breaking change: Introducing the Started lifecycle state

Started replaces Shown and represents "being drawn to the screen with an active Activity and View" (though we don't really need to care about views in compose). This aligns with Android's use of the term "started". It's also worth noting that our ComposeStep.Content() is only active when Started or Resumed.

Shown is still around, though it now represents "on top of the backstack". show() and hide() are now effectively navigatedTo() and navigatedFrom() respectively.

This means that we now have a lifecycle state (and coroutine scope) in which to put work that we want to survive a rotation, but not navigating to another Step. In most cases, shownScope is where you want to put work happening in a screen, unless you want it to only run while focused (resumedScope) or while the view/activity is active (startedScope).

State On backstack Top of backstack View created +
Activity available +
Compose active
In focus
Destroyed
Created ✔ (roughly)
Shown (changed)
Started (new)
Resumed

Migration steps

  • Any work that requires an activity, view, or active composition should move to startedScope.
  • Any other work, especially anything you want to survive rotation, can stay in shownScope.

0.4.1

30 Jan 02:09
b697704

Choose a tag to compare

  • Expose ComposeNavigator.currentNavigable and currentNavigableFlow for use in Journeys

0.4.0

25 Jan 19:52
42739b5

Choose a tag to compare

  • Update Kotlin to 1.9.22 and compose compiler to 1.5.8
  • Update Compose BOM to 2024.01.00 (Compose version 1.6.0)
  • Update other internal dependencies

0.3.1

06 Jan 06:41
1d9257b

Choose a tag to compare

  • Fix Jitpack build

0.3.0

05 Jan 23:46
01fc079

Choose a tag to compare

  • Update Kotlin to 1.9.21 and the compose compiler to 1.5.7
  • Update compose BOM to 2023.10.01
  • Update and/or remove other internal dependencies

0.2.0

26 Nov 20:22
ab297d9

Choose a tag to compare

  • Update compose to stable, BOM version 2022.11.00
  • Update Kotlin to 1.7.10 and the compose compiler to 1.3.1
  • Update lots of other internal dependencies

0.1.2

08 Jun 23:13

Choose a tag to compare

  • Remove Context from lifecycle events