The format is based on Keep a Changelog. This project does not use semantic versioning.
LiveData.onEachEventblock expects a Boolean result value. This will control whether the event is marked as handled or not. This is useful when the event is received in a state where the action can't be handled. Returntrueto keep the previous behaviour.
- Added extension functions to
MvvmExtensions.ktfile to be able to pass in SavedStateHandle to ViewModelFactories.
- Renamed Event to SingleEvent. Event name tends to clash with various classes in projects.
- Removed MvvmActivity, MvvmFragment and MvvmDialogFragment classes to discourage unnecessary inheritance.
- Changed min sdk from 21 to 19
- Added MvvmDialogFragment implementation
- Added equals() and hashCode() implementations to Event class
- Removed lazy wrapper functions for creating ViewModels. They are already implemented in androidx.fragment:fragment-ktx package.
- Removed MvvmViewModel class
- Made lazy wrapper functions protected withing MvvmActivity and MvvmFragment
- Added convenient lazy wrapper functions to easily create ViewModels
- Moved LiveData extensions into a reusable interface
- Removed generics from MvvmActivity and MvvmFragment