Skip to content

🐔🏀这是一个快速开发的项目壳,Kotlin语言开发,MVVM+Jetpack架构,封装了公共头部、界面状态管理、ViewModel、LiveData、DataBinding、头部刷新、加载更多、沉浸式、全局通知、丰富好用的拓展函数、RxHttp网络请求等等一系列工具

License

Notifications You must be signed in to change notification settings

sy5251/MvvmHelper

This branch is 32 commits behind hegaojian/MvvmHelper:modular.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

a100b78 · Feb 15, 2022

History

80 Commits
Jan 13, 2022
Nov 2, 2021
Jan 13, 2022
Dec 3, 2020
Dec 3, 2020
Feb 15, 2022
Jan 13, 2022
Jan 13, 2022
Dec 3, 2020
Dec 3, 2020
Jun 9, 2021

Repository files navigation

###项目初始化模板 :chicken::chicken::chicken: 这是一个快速开发的框架,使用Kotlin语言开发,MVVM+Jetpack架构,封装了公共头部、界面状态管理、ViewModel、LiveData、DataBinding、ViewBinding、头部刷新、加载更多、沉浸式、全局通知、丰富好用的拓展函数、RxHttp网络请求等等一系列工具**

clone慢的可以用 gitee链接 https://gitee.com/hegaojian/MvvmHelper

1.如何集成

  • 1.1 在root's build.gradle中加入 Jitpack 仓库
allprojects {
    repositories {
        ...
        maven { url 'https://jitpack.io' }
    }
}
  • 1.2 在app's build.gradle中添加依赖
apply plugin: 'kotlin-kapt'

...

dependencies {
  ...
  implementation 'com.github.hegaojian:MvvmHelper:1.1.5'
  kapt 'com.github.liujingxing.rxhttp:rxhttp-compiler:2.8.3'
}
  • 1.3 在app's build.gradle中,android 模块下开启DataBinding或者ViewBinding 可以自行选择
AndroidStudio 4.0 以下版本------>
android {
    ...
    dataBinding {
        enabled = true //可选 不用可以不写
    }
    viewBinding {
        enabled = true //可选 不用可以不写
    }
}

AndroidStudio 4.0及以上版本 ------>
android {
    ...
   buildFeatures {
        dataBinding = true //可选 不用可以不写
        viewBinding = true //可选 不用可以不写
    }
}
 
  • 1.4 在Application中初始化
 MvvmHelper.init(this,BuildConfig.DEBUG)

混淆

-keepclassmembers class * implements androidx.viewbinding.ViewBinding {
  public static * inflate(android.view.LayoutInflater);
  public static * inflate(android.view.LayoutInflater, android.view.ViewGroup, boolean);
  public static * bind(android.view.View);
}

About

🐔🏀这是一个快速开发的项目壳,Kotlin语言开发,MVVM+Jetpack架构,封装了公共头部、界面状态管理、ViewModel、LiveData、DataBinding、头部刷新、加载更多、沉浸式、全局通知、丰富好用的拓展函数、RxHttp网络请求等等一系列工具

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Kotlin 100.0%