- BasicLibrary是基于kotlin+jetpack+mvvm封装的一套框架,提高Android开发效率
- 项目地址:https://github.com/Peakmain/BasicLibrary
- 使用文档链接: https://github.com/Peakmain/BasicLibrary/wiki
- Activity Results API实现权限封装
- MMKV的封装
- 防止多次事件的处理
- Retrofit封装实现网络解耦
- 线程的切换,View的抖动效果
- LiveData实现事件分发总线
Add it in your root build.gradle at the end of repositories:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
but If it is a new version of Android studio,Add it in your root setting.gradle at the end of repositories:
dependencyResolutionManagement {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
dependencies {
implementation 'com.github.Peakmain:BasicLibrary:+'
}
-keep class com.peakmain.basiclibrary.permission.PkPermissionFragment {
*;
}
-keep class com.peakmain.basiclibrary.image.ImageSelectorFragment {
*;
}
- 简书(https://www.jianshu.com/u/3ff32f5aea98)
- 我的GitHub地址(https://github.com/Peakmain)