开发中用到的一些开发库,总结如下:
APP架构:MVC、MVP、MVVM、组件化
网络: Retrofit、Okhttp、Volley
retrofit使用
implementation 'com.squareup.retrofit2:retrofit:2.7.1'
多线程:RxAndroid
implementation "io.reactivex.rxjava2:rxandroid:2.0.2"
图片加载:Glide、Volley、Picasso、Fresco
Glide使用
implementation 'com.github.bumptech.glide:glide:4.11.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0'
数据库:GreenDao、LitePal
implementation 'org.greenrobot:greendao:3.2.2' //引用比较复杂,建议参考文章
动画库:ViewAnimator、Lottie
权限请求库:EasyPermission
注入注解:Dagger2,butterknife
butterknife使用
implementation 'com.jakewharton:butterknife:10.2.1'
推送:友盟、极光
极光推送使用
implementation 'cn.jiguang.sdk:jpush:3.5.6'
implementation 'cn.jiguang.sdk:jcore:2.2.8'
多渠道打包:友盟、美团、360加固
美团walle
implementation 'com.meituan.android.walle:library:1.1.6'
360加固就是下载桌面程序
分享:友盟
网络解析:Gson、fastjson
implementation('com.google.code.gson:gson:2.8.2')
implementation('com.alibaba:fastjson:1.1.46.android')
热修复:微信的tinker
事件分发:Eventbus
implementation 'org.greenrobot:eventbus:3.1.1'
内存泄漏检测:LeakCaneary
releaseImplementation 'com.squareup.leakcanary:leakcanary-android-no-op:1.6.1'
debugImplementation 'com.squareup.leakcanary:leakcanary-android:1.6.1'
路由:ARRouter
implementation 'com.alibaba:arouter-api:1.5.0'
annotationProcessor 'com.alibaba:arouter-compiler:1.1.4'
支付:微信、支付宝、银联
地图:高德、百度
语音识别:科大讯飞
用户信息统计:友盟
崩溃日志统计:听云
免费注册短信验证码:share sdk
IM即时通讯:环信
二维码:zxing
短视频播放剪辑:美拍、趣拍、美摄
打包Java类分包:multidex
implementation 'com.android.support:multidex:1.0.3'
recyclerview智能刷新框架:SmartRefreshLayout,内部只能放3个控件,如果多了,可以使用include
implementation 'com.scwang.smartrefresh:SmartRefreshLayout:1.1.0-alpha-14'
logger工具类:
implementation 'com.orhanobut:logger:2.2.0'
第三方工具:OTL,提供多个帮助工具类
implementation 'com.blankj:utilcode:1.22.1'
分包:multidex,代码类太多时候,需要分包
implementation 'com.android.support:multidex:1.0.3'