SkillAgentSearch skills...

MVVMArms

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

Install / Use

/learn @xiaobailong24/MVVMArms

README

MVVMArms

<p align="center"> <a href="https://bintray.com/xiaobailong24/maven/MVVMArms/0.1.0/link"> <img src="https://img.shields.io/badge/bintray-v0.1.0-brightgreen.svg" alt="Latest Stable Version" /> </a> <a href="https://travis-ci.org/xiaobailong24/MVVMArms"> <img src="https://travis-ci.org/xiaobailong24/MVVMArms.svg?branch=master" alt="Build Status" /> </a> <a href="https://developer.android.com/about/versions/android-4.0.3.html"> <img src="https://img.shields.io/badge/API-15%2B-blue.svg?style=flat-square" alt="Min Sdk Version" /> </a> <a href="http://www.apache.org/licenses/LICENSE-2.0"> <img src="http://img.shields.io/badge/License-Apache%202.0-blue.svg?style=flat-square" alt="License" /> </a> </p> <div align="center"><img src="https://github.com/xiaobailong24/MVVMArms/blob/master/image/MVVMArms_Logo.png" width="40%" height="40%" align=center></div>

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

中文

Architecture

<div align="center"><img src="https://github.com/xiaobailong24/MVVMArms/raw/master/image/MVVMArms_Architecture.png" width="80%" height="80%" align=center></div>

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

<div align="center"> <a href='https://play.google.com/store/apps/details?id=me.xiaobailong24.mvvmarms.weather&pcampaignid=MKT-Other-global-all-co-prtnr-py-PartBadge-Mar2515-1'> <img alt='Get it on Google Play' src='https://play.google.com/intl/en_us/badges/images/generic/en_badge_web_generic.png'/></a> </div>

Video

MVVMArms demo video

Libraries & References

Update Log

  • Release First Version-0.1.0 - 2017/11/12.
  • RepositoryComponent Provides Cache & RxCache. - 2017/10/11.
  • lifecycle & repository. - 2017/10/01.
  • ArmsFragment Support Lazy load. - 2017/09/24.
  • ViewModel&LiveData Activity share data between fragments, and ViewModel retain data across configuration changes. - 2017/09/23.
  • IRepositoryManager Support RoomDatabase for customization(GlobalConfigModule.Builder) BUT injectRoomDatabase(DBClass) first in ConfigModule#registerComponents(). - 2017/09/22.
  • ArmsUtils to obtain ArmsComponent easily. - 2017/08/23.
  • ImageLoader default Glide. - 2017/08/17.
  • Survives configuration changes for ViewPager using Fragment. - 2017/08/16
  • MVVMArms was BORN!!! - 2017/08/02

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.
View on GitHub
GitHub Stars423
CategoryDevelopment
Updated3mo ago
Forks62

Languages

Java

Security Score

97/100

Audited on Dec 8, 2025

No findings