MvvmHelper
Introduction: :chicken::basketball:这是一个快速开发的项目壳,Kotlin 语言开发,MVVM+Jetpack 架构,封装了公共头部、界面状态管理、ViewModel、LiveData、DataBinding、头部刷新、加载更多、沉浸式、全局通知、丰富好用的拓展函数、RxHttp 网络请求等等一系列工具
Tags:
###项目初始化模板 :chicken::chicken::chicken: 这是一个快速开发的项目壳,使用 Kotlin 语言开发,MVVM+Jetpack 架构,封装了公共头部、界面状态管理、ViewModel、LiveData、DataBinding、头部刷新、加载更多、沉浸式、全局通知、丰富好用的拓展函数、RxHttp 网络请求等等一系列工具,不好用你来砍我!!!
clone 慢的可以用 gitee 链接 https://gitee.com/hegaojian/MvvmHelper
- 1.1 在 root's build.gradle 中加入 Jitpack 仓库
buildscript {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
- 1.2 在 app's build.gradle 中添加依赖
dependencies {
...
implementation 'com.github.hegaojian:MvvmHelper:1.0.2'
kapt "com.ljx.rxhttp:rxhttp-compiler:2.5.5"
}
- 1.3 在 app's build.gradle 中,android 模块下开启 DataBinding(如果你不想用 DataBinding,请忽略这一步)
AndroidStudio 4.0 以下版本------>
android {
...
dataBinding {
enabled = true
}
}
AndroidStudio 4.0 及以上版本 ------>
android {
...
buildFeatures {
dataBinding = true
}
}
