Skip to content

Version 0.5.0

Compare
Choose a tag to compare
@haroldadmin haroldadmin released this 20 Sep 19:41
· 82 commits to master since this release

A lot of new features in this release, including automatic ViewModel creation, support for assisted inject factories, and more.

New:

  • Add new viewmodel delegates for Fragments and Activities for automatic viewmodel
    creation.
  • Better support for libraries such as AssistedInject, because of overloaded versions of
    viewmodel delegates which accept a factory lambda for the viewmodel.
  • Easier state persistence in SavedStateVectorViewModel, using the new KEY_SAVED_STATE
    for storing state objects in the saved state handle and a new setStateAndPersist method.
  • Migrate Sample app to use Dagger and AssistedInject

Other:

  • Deprecate setInitialState method
  • Reflection benchmarks in the benchmark module

The library is stuck on androidx.lifecycle v2.2.0-alpha04 for now because of a SavedStateController bug in version 2.2.0-alpha05.

There is a ton of new stuff in this release. Please file issues if you have a bug report or a feature request.