Need help with MvRx?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

4.3K Stars 337 Forks Apache License 2.0 319 Commits 39 Opened issues


Mavericks: Android on Autopilot

Services available


Need anything else?

Contributors list

Build Status Maven Central

Mavericks (formerly MvRx): Android on Autopilot

For full documentation, check out our docs site.

Mavericks is the Android framework from Airbnb that we use for nearly all product development at Airbnb.

When we began creating Mavericks, our goal was not to create yet another architecture pattern for Airbnb, it was to make building products easier, faster, and more fun. All of our decisions have built on that. We believe that for Mavericks to be successful, it must be effective for building everything from the simplest of screens to the most complex in our app.

This is what it looks like: ```kotlin

data class HelloWorldState(val title: String = "Hello World") : MavericksState

/** * Refer to the wiki for how to set up your base ViewModel. */ class HelloWorldViewModel(initialState: HelloWorldState) : MavericksViewModel(initialState) { fun getMoreExcited() = setState { copy(title = "$title!") } }

class HelloWorldFragment : Fragment(R.layout.helloworldfragment), MavericksView { private val viewModel: HelloWorldViewModel by fragmentViewModel()

override fun invalidate() = withState(viewModel) { state ->
    // Update your views with the latest state here.
    // This will get called any time your state changes and the viewLifecycleOwner is STARTED.

} ```


Gradle is the only supported build configuration, so just add the dependency to your project

dependencies {
  implementation ''

The latest version of mavericks is Maven Central

For full documentation, check out the docs site

Legacy documentation for MvRx 1.x can still be found in the wiki

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.