/CoMvvmHelper

android mvvm 基础框架,适合日常快速开发。有需要添加的内容或者发现问题可以提 issue。

Primary LanguageKotlinMIT LicenseMIT

Cov(CoMvvmHelper)

A lightweight tool-collection for quickly-developing an android app use (Kotlin + JetPack + DataBinding)

How to import

  1. Add it in your root build.gradle at the end of repositories:
allprojects {
	repositories {
		maven { url 'https://jitpack.io' }
	}
}
  1. Add the dependency
dependencies {
    // current latest release version is 0.4.0
    // current latest alpha version is 0.4.0-alpha01
	implementation 'com.github.kukyxs:CoMvvmHelper:version'
}

Diff between release and alpha version

alpha will support some alpha libs, such as DataStore and so on.

Alpha version Supported

  1. DataStore -> see DataStoreUtils
  2. Paging3 -> see BasePagingAdapter

How to use

Application configurations -> App

ImageLoadEngine(if use default image DataBindingAdapter) -> example: GlideEngine

Permission Demo -> PermissionDemoActivity

Http Demo(include download, dsl http request, request by retrofit) -> HttpDemoActivity

LiveDataManagerPool Demo() -> HttpDemoActivity

RecyclerView Demo(include Update Items, add HeaderView/FooterView, MultiItemLayout) -> RecyclerViewDemoActivity

MultiDisplay Demo -> MultiItemDisplayActivity

ImageDisplay and DataStore(alpha branch) Demo -> ImageDisplayActivity, ImageDisplayAlpha

DialogFragment Demo -> DemoDialogFragment, MultiItemDisplayActivity

Background By DataBinding -> activity_shape_display

Paging3 Demo -> PagingDemoActivity

More Koltin Extension Functions can read source code

Third Libraries Implemented at Cov

see -> LibConfigs

proguard rules referer the proguard rules of third library(OkHttp and Retrofit proguard rules has been added)

License

MIT License

Copyright (c) 2020 kuky_xs

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.