MvRx

MvRx is an Android application framework that makes product development fast and fun.

Лицензия

Лицензия

Категории

Категории

RxJava Контейнер Микросервисы Reactive libraries
Группа

Группа

com.airbnb.android
Идентификатор

Идентификатор

mvrx-rxjava2
Последняя версия

Последняя версия

2.0.0-beta3
Дата

Дата

Тип

Тип

aar
Описание

Описание

MvRx
MvRx is an Android application framework that makes product development fast and fun.
Ссылка на сайт

Ссылка на сайт

https://github.com/airbnb/mvrx
Система контроля версий

Система контроля версий

https://github.com/airbnb/mvrx

Скачать mvrx-rxjava2

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/com.airbnb.android/mvrx-rxjava2/ -->
<dependency>
    <groupId>com.airbnb.android</groupId>
    <artifactId>mvrx-rxjava2</artifactId>
    <version>2.0.0-beta3</version>
    <type>aar</type>
</dependency>
// https://jarcasting.com/artifacts/com.airbnb.android/mvrx-rxjava2/
implementation 'com.airbnb.android:mvrx-rxjava2:2.0.0-beta3'
// https://jarcasting.com/artifacts/com.airbnb.android/mvrx-rxjava2/
implementation ("com.airbnb.android:mvrx-rxjava2:2.0.0-beta3")
'com.airbnb.android:mvrx-rxjava2:aar:2.0.0-beta3'
<dependency org="com.airbnb.android" name="mvrx-rxjava2" rev="2.0.0-beta3">
  <artifact name="mvrx-rxjava2" type="aar" />
</dependency>
@Grapes(
@Grab(group='com.airbnb.android', module='mvrx-rxjava2', version='2.0.0-beta3')
)
libraryDependencies += "com.airbnb.android" % "mvrx-rxjava2" % "2.0.0-beta3"
[com.airbnb.android/mvrx-rxjava2 "2.0.0-beta3"]

Зависимости

compile (2)

Идентификатор библиотеки Тип Версия
com.airbnb.android : mvrx jar 2.0.0-beta3
io.reactivex.rxjava2 : rxjava jar 2.2.9

runtime (5)

Идентификатор библиотеки Тип Версия
org.jetbrains.kotlin : kotlin-stdlib-jdk8 jar 1.4.10
org.jetbrains.kotlin : kotlin-android-extensions-runtime jar 1.4.10
androidx.fragment » fragment jar 1.2.5
androidx.lifecycle » lifecycle-common-java8 jar 2.2.0
androidx.lifecycle » lifecycle-runtime-ktx jar 2.2.0

Модули Проекта

Данный проект не имеет модулей.

Build Status Maven Central

MvRx: Android on Autopilot

For full documentation, check out the wiki

MvRx (pronounced mavericks) is the Android framework from Airbnb that we use for nearly all product development at Airbnb.

When we began creating MvRx, 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 MvRx 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:

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

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

class HelloWorldFragment : BaseFragment() {
    private val viewModel: HelloWorldViewModel by fragmentViewModel()

    override fun EpoxyController.buildModels() = withState(viewModel) { state ->
        header {
            title(state.title)
        }
        basicRow { 
            onClick { viewModel.getMoreExcited() }
        }
    }
}

Installation

Gradle is the only supported build configuration, so just add the dependency to your project build.gradle file:

dependencies {
  implementation 'com.airbnb.android:mvrx:x.y.z'
}

The latest version of mvrx is Maven Central

For full documentation, check out the wiki

com.airbnb.android

Airbnb

Версии библиотеки

Версия
2.0.0-beta3
2.0.0-beta2
2.0.0-beta1
2.0.0-alpha8
2.0.0-alpha7
2.0.0-alpha6
2.0.0-alpha5
2.0.0-alpha4
2.0.0-alpha3