A lightweight tool-collection for quickly-developing an android app use (Kotlin + JetPack + DataBinding)
- Add it in your root build.gradle at the end of repositories:
allprojects {
repositories {
maven { url 'https://jitpack.io' }
}
}
- 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'
}
alpha will support some alpha libs, such as DataStore and so on.
- DataStore -> see DataStoreUtils
- Paging3 -> see BasePagingAdapter
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
see -> LibConfigs
proguard rules referer the proguard rules of third library(OkHttp and Retrofit proguard rules has been added)
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.