GithubHelp home page GithubHelp logo

mvparchitecture-android's Introduction

MvpArchitecture 2.x

MVP模式的模块化开发框架。

开发环境:AndroidStudio 3.0

网络层:

HTTP : Rxjava2 + Retrofit2 + Okhttp3

ImageLoader:Glide v4

Cache: RxCache

数据处理层:

JavaBean: lombok

Java8:Stream + Lambda

Dependencies Injection: DaggerAndroid

UI层:

Views Binding: DataBinding

关于ButterKnife:2.x模块化开发尝试使用DataBinding代替ButterKnife,功能仅使用最简单的View绑定,类似Kotlin插件的效果,只需要通过b.viewId即可进行对View的操作

Layout:ConstraintLayout

其他三方库:

1.AutoDispose:Automatic binding+disposal of RxJava 2 streams.
2.RxBinding:RxJava binding APIs for Android's UI widgets.
3.ARouter:An android router middleware that help app navigating to activities and custom services.

测试层:

AndroidTest: Espresso

UnitTest: Mockito + Robolectric

Modules

1.app: 最顶层的应用,通过组合不同的业务模块生成对应的App

2.module_x: 业务模块,比如搜索模块、用户信息模块、视频播放模块等

3.module_core:底部架构级模块,业务开发中很少修改的模块,包括各个三方库的依赖,各种BaseXXX类、Util类,以及底层级别的依赖注入配置等

4.module_business:不同业务模块间消息传递的模块,采用ARouter,比如搜索模块和用户信息模块界面之间数据的传递

mvparchitecture-android's People

Watchers

James Cloos avatar jian wang avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.