Skip to content

Latest commit

 

History

History
44 lines (32 loc) · 2.04 KB

CHANGELOG.md

File metadata and controls

44 lines (32 loc) · 2.04 KB

0.6.0 CHANGELOG

New features

Support for multiple stacked scenes

If there are multiple stacked views (dialogs, drawers, etc.) in a scene, the Screenplay will now "remember" the state when you navigate to a different scene and restore the state correctly when you navigate back.

Persistent scopes

The ScopedScene now has a persistent scope that is only destroyed when it is popped off of the stack.

Better handling of configuration changes

Scenes now have a Scene.teardownOnConfigurationChanges method (true by default). If true, the Scene's tearDown and setUp methods will be called when a configuration change occurs. This is useful if you want to load a different XML resource on configuration changes.

API breaks

  1. The Rigger class has been removed. It has been replaced with a boolean flag, Scene.isStacking.
  2. The ScopedScene now creates a scope in the constructor, instead of in Scene.setUp. This avoids the need to do 'late injection` on the Scene. Injected fields are available immediately and use the scene's scope, not the parent scope.
  3. The Scene.setUp method now takes a Flow.Direction as a parameter. This is intended to support tearing down the ScopedScene when it is popped off of the stack.
  4. The afterSetUp and beforeTearDown callbacks on the Component no longer take a View as an argument as this was redundant. Access the view with Scene.getView.
  5. The Scene.tearDown and Component.beforeTearDown methods now have a boolean parameter, isFinishing. This is true if the scene is being popped off of the stack, false otherwise.
  6. The Scene.setUp and Component.afterSetUp methods now have a boolean parameter, isInitializing. This is true if the scene is being pushed onto the stack, false otherwise.
  7. Components are no longer passed through the scene's constructor. use the addComponents() method instead.
  8. Components no longer pass a context argument. Use Scene.getView.getContext instead.
  9. ScopedScene changed to MortarScopedScene

0.5.3 CHANGELOG

  • Begin version tracking