【此git仓库已停止更新,其中的若干个模块将被拆分为多个仓库,详情请点开本人的仓库列表查看。】使用Kotlin Coroutine和ViewModel、LiveData等Android Jetpack组件搭建而成的MVP、MVVM架构框架。实现了业务代码的高复用性的核心特点,并且使用简单、代码简洁。 如果使用Retrofit作为网络请求工具,可以为Model层自动注入Retrofit Api实例,进一步精简代码。同样的,也可以注入Room数据库框架的Dao层接口。注:配合http模块食用,风味更佳!
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
模块 | 依赖 |
---|---|
adapter | implementation 'com.github.xiazunyang.brick:adapter:1.6.1' |
brick | implementation 'com.github.xiazunyang.brick:brick:1.6.1' |
chameleon | implementation 'com.github.xiazunyang.brick:chameleon:1.6.1' |
context-util | implementation 'com.github.xiazunyang.brick:context-util:1.6.1' |
delegate | implementation 'com.github.xiazunyang.brick:delegate:1.6.1' |
http | implementation 'com.github.xiazunyang.brick:http:1.6.1' |
result | implementation 'com.github.xiazunyang.brick:result:1.6.1' |
rx | implementation 'com.github.xiazunyang.brick:rx:1.6.1' |
stateful-layout | implementation 'com.github.xiazunyang.brick:stateful-layout:1.6.1' |
stateful-livedata | implementation 'com.github.xiazunyang.brick:stateful-livedata:1.6.1' |