xiaobailong24 / MVVMArms

Android MVVM Architecture Components based on MVPArms and Android Architecture Components.
Apache License 2.0
424 stars 64 forks source link
android-architecture dagger2 dagger2-android dagger2-mvvm databinding lifecycle livedata mvparms mvvm okhttp3 retrofit2 room rxandroid2 rxjava2 viewmodel

MVVMArms

Latest Stable Version Build Status Min Sdk Version License

Android MVVM Architecture Components based on MVPArms and Android Architecture Components.

中文

Architecture

Quick Use

Root Gradle

allprojects {
    repositories {
        //...
        maven { url "https://jitpack.io" }
    }
}       

Module Gradle

//mvvmarms
implementation 'me.xiaobailong24.mvvmarms:arms:0.1.0'

//Architecture Components annotation(Lifecycles, LiveData, and ViewModel, Room)
annotationProcessor rootProject.ext.dependencies["lifecycle-compiler"]
annotationProcessor rootProject.ext.dependencies["room-compiler"]
testImplementation(rootProject.ext.dependencies["room-testing"]) {
    exclude module: 'support-compat'
    exclude module: 'support-annotations'
    exclude module: 'support-core-utils'
    exclude module: 'gson'
}

//Dagger annotation
annotationProcessor(rootProject.ext.dependencies["dagger2-compiler"]) {
    exclude module: 'js305'
}
annotationProcessor(rootProject.ext.dependencies["dagger2-android-processor"]) {
    exclude module: 'jsr305'
}

More to see: Demo

Demo

APK

MVVMArms APK

Google Play

Get it on Google Play

Video

MVVMArms demo video

Libraries & References

Update Log

Thanks

Thanks to all the authors and organizations that contributed to the open source library!

License

Copyright 2017 xiaobailong24

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.