这是一个适用于大中小全能型AndroidMVP开发框架,核心**取自MVPArms,做了一些适合自己项目的修改 主要集成目前主流开源框架,涉及Dagger2、ButterKnife、Retrofit2、Glide、Gson等第三方库
- 配置自定义Application必须继承BaseApplication,BaseApplication完成Http、图片、DB、日志管理等框架的初始化工作
- 使用Activity、Fragment、ViewHolder、Service、Adapter需继承CommonActivity、CommonFragment、BaseViewHolder、BaseService、BaseAdapter来初始化MVP架构
- 通过Application获取AppComponent里面的对象可直接使用
- 简单功能及页面无需引入MVP
- 网络模块 使用Retrofit2,并通过Dagger2注入实例提供给开发者。Retrofit采用注解方式定义接口方便管理,极大的减少了请求代码和步骤,底层采用Okhttp
- 图片模块 使用策略者模式,使用者只需替换三个类,就可以更换图片框架,默认使用Glide,通过AppComponent获取ImageLoader实例
- 数据库模块 选择适用于Android的GreenDAO框架,通过AppComponent获取DaoSession实例
- Project Submit Bug or Idea
Copyright 2016-2017 DesignQu
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.