All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Move release logic from github workflow to fastlane
- Upgrade Android Gradle Plugin to 3.6.3
- Upgrade Kotlin to 1.3.72
- Add units tests in the sample app
- Run Danger to validate PR
- Add a contribution guide
- Add
showState(@IdRes id: Int, showTransitions: Boolean)
to StatefulLayout to disable transition - Stateful layouts now have a
areTransitionsEnabled
attribute to enable/disable transitions - Optional error message argument for
showError()
method.
- Remove duplicates in view hierarchy when trying to overload an existing state
- State constructor parameters were reversed, breaking up Android Studio preview
- Hide all states by default
- Fix typo on xml attribute
defaultExitrTransition
that has been renamed todefaultExitTransition
- Fix enter/exit defaultTransition sharing the same animation instance for all the states. Switching quickly between states was resulting in animation issue.
- Fix crash when restoring a StatefulLayout that has no state
- State content view can be set using a layout resource.
- The new contentLayout State's attribute allows to specify a layout to inflate.
- Documentation on public classes.
- Default initial state is no longer
stateContent
, by default no state is displayed.
- State now throws an IllegalArgumentException if multiples views are added using addView.
- Mark DefaultTransitionListenerHandler as internal
- All method in StateTransitionListener interface now have empty default implementation.
- DefaultStateTransitionListener was removed in favor of Kotlin interface default implementation in StateTransitionListener
- Remove launcher icons, they were leaking to project, replacing ones project launcher icons under certain circumstance.
- Fix NPE when showing an error state that doesn't contain a retry button in its layout
- Update builds tool to 29.0.3
- First release