MvRx v2.0.0-alpha1 Release Notes
Release Date: 2019-12-11 // over 4 years ago-
๐ This is a new major release with breaking changes. It incorporates a mocking system into MvRx to declare test data for screens and leverage that data with various testing tools. For a high level overview of this system, see this article series.
The main breaking change is that the
debugMode
parameter no longer exists onBaseMvRxViewModel
. Instead, you define a global app wide debug setting by settingMvRx.viewModelConfigFactory = MvRxViewModelConfigFactory(applicationContext)
from your app's initialization.๐ See the configuration wiki for more details.
โ Additionally, the MvRxTestRule from the mvrx-testing artifact has changed its interface slightly. Notably the debug mode enum has been changed to a boolean. See the testing wiki page for details on this artifact.
๐คก Mocking
๐ง If you would like to use the new mocking system, you can replace the
MvRx
configuration call withMvRxMocks.install(applicationContext)
.โ Additionally, you can define mocks for your screens by using the
MockableMvRxView
interface instead ofMvRxView
. This unlocks usage of the MvRx Launcher for easily browsing all screens and mocks in your app.๐ For more details on the mocking system, see the wiki page
Feedback
๐ This is an alpha so that we can receive feedback on the mocking apis and documentation (as well as bugs of course). Please let us know what you think and what changes you would like to see before the stable release!