1. Arm框架
快速搭建mvp框架
2. AndroidUtilCode
工具类
implementation 'com.blankj:utilcode:1.29.0'
// if u use AndroidX, use the following
implementation 'com.blankj:utilcodex:1.29.0'
3. greenDAO
面向对象型数据库框架
buildscript {
repositories {
jcenter()
mavenCentral() // add repository
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.3'
classpath 'org.greenrobot:greendao-gradle-plugin:3.3.0' // add plugin
}
}
apply plugin: 'com.android.application'
apply plugin: 'org.greenrobot.greendao' // apply plugin
dependencies {
implementation 'org.greenrobot:greendao:3.3.0' // add library
}
4. StatusBarUtil
沉浸式布局工具类
compile 'com.jaeger.statusbarutil:library:1.5.1'
5. RxJava
Rxjava
implementation "io.reactivex.rxjava3:rxjava:3.x.y"
(Please replace x and y with the latest version numbers: Maven Central )
6. Retrofit /netty/okHttp
网络框架:retrofit/netty/okhttp
7. Glide
图片展示框架
repositories {
google()
jcenter()
}
dependencies {
implementation 'com.github.bumptech.glide:glide:4.11.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0'
}
8. Butterknife
注解导入框架
apply plugin: 'com.android.library'
apply plugin: 'com.jakewharton.butterknife'
android {
...
// Butterknife requires Java 8.
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
dependencies {
implementation 'com.jakewharton:butterknife:10.2.3'
annotationProcessor 'com.jakewharton:butterknife-compiler:10.2.3'
}
buildscript {
repositories {
mavenCentral()
google()
}
dependencies {
classpath 'com.jakewharton:butterknife-gradle-plugin:10.2.3'
}
}
9. EventBus
EventBus是发布/订阅事件总线
implementation 'org.greenrobot:eventbus:3.2.0'
-keepattributes *Annotation*
-keepclassmembers class * {
@org.greenrobot.eventbus.Subscribe <methods>;
}
-keep enum org.greenrobot.eventbus.ThreadMode { *; }
# And if you use AsyncExecutor:
-keepclassmembers class * extends org.greenrobot.eventbus.util.ThrowableFailureEvent {
<init>(java.lang.Throwable);
}
10. AndPermission
Android6.0权限请求框架
implementation 'com.yanzhenjie:permission:2.0.3'
11. BaseRecyclerViewAdapterHelper
强大而灵活的RecyclerView Adapter
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
dependencies {
implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:3.0.4'
}
12. SmartRefreshLayout
Android智能下拉刷新框架
compile 'com.android.support:appcompat-v7:25.3.1'
implementation 'com.scwang.smart:refresh-layout-kernel:2.0.1' //核心必须依赖
implementation 'com.scwang.smart:refresh-header-classics:2.0.1' //经典刷新头
Androidx
implementation 'androidx.appcompat:appcompat:1.0.0' //必须 1.0.0 以上
implementation 'com.scwang.smart:refresh-layout-kernel:2.0.1' //核心必须依赖
implementation 'com.scwang.smart:refresh-header-classics:2.0.1' //经典刷新头
13. AndroidAutoSize
今日头条屏幕适配方案终极版
implementation 'me.jessyan:autosize:1.2.1'
14. PictureSelector
Android平台下的图片选择器(AndroidX) Api说明
implementation 'com.github.LuckSiege.PictureSelector:picture_library:v2.5.9'
allprojects {
repositories {
jcenter()
maven { url 'https://jitpack.io' }
}
}
15. packer-ng-plugin
about: 下一代Android打包工具,100个渠道包只需要10秒钟
极速渠道打包工具
16. Klog
Android LogCat 工具类
dependencies {
compile 'com.github.zhaokaiqiang.klog:library:1.6.0'
}
17. TakePhoto
Android平台下的图片选择器
implementation 'org.devio.takephoto:takephoto_library:4.1.0'