每次接手新的項目時,看到了很多沒有註釋的依賴,有些難以記得,每次都要在網上翻閱很久查看其意,所以寫此文章進行以後開發時閱讀,以提高開發效率。
- 編輯時間 2018-10-12
v4 v7 包
//V4支持包
compile('com.android.support:support-v4:23.2.0') {
exclude module: 'support-v4'
}
//V7支持包
compile 'com.android.support:appcompat-v7:23.2.0'
控件 (輪播、刷新、滑動、複製、引導等)
//TextView支持文字複製功能
compile 'me.codeboy.android:align-text-view:2.3.0'
//RecycleView 滑動控件
compile('com.android.support:recyclerview-v7:23.2.0') {
exclude module: 'support-v4'
}
//圖片輪播庫
compile 'com.flyco.banner:FlycoBanner_Lib:1.1.8@aar'
//banner
compile 'com.youth.banner:banner:1.4.10'
//刷新佈局效果
compile files('libs/AndroidSwipeLayout-v1.1.6.jar')
//歡迎頁面開源庫 主要用於做引導頁面的
compile 'com.github.paolorotolo:appintro:3.4.0'
//徽章控件消息紅點
compile files('libs/android-viewbadger.jar')
//GifView
compile 'com.github.Cutta:GifView:1.1'
//CityPicker地址選擇器
implementation 'com.zaaach:citypicker:2.0.1'
加載框架(圖片、網絡)
//圖片加載框架
//facebook的圖片加載框架
compile 'com.facebook.fresco:fresco:0.6.0+'
//glide
implementation 'com.github.bumptech.glide:glide:4.7.1'
annotationProcessor 'com.github.bumptech.glide:compiler:4.7.1'
//imageloader
compile 'com.zftlive.android.library:feature-android-imageloader:1.0.0'
//網絡加載框架
//okhttp
implementation 'com.squareup.okhttp3:okhttp:3.10.0'
//okhttp日誌攔截器
implementation 'com.squareup.okhttp3:logging-interceptor:3.10.0'
// okio
compile 'com.squareup.okio:okio:1.11.0'
// 網絡請求
compile 'org.apache.httpcomponents:httpcore:4.4.2'
數據庫
//LitePal數據庫
compile 'org.litepal.android:core:1.4.1'
動畫
//動畫效果功能
compile 'com.nineoldandroids:library:2.4.0'
二維碼
// 二維碼掃描功能
compile 'com.google.zxing:core:3.0.1'
Json解析
//Json解析功能
compile files('libs/gson-2.2.2.jar')
compile files('libs/fastjson-1.1.40.jar')
//轉換器 將結果通過gson將json串轉換爲model
implementation 'com.squareup.retrofit2:converter-gson:2.3.0'
RX
//rxjava
implementation 'io.reactivex.rxjava2:rxjava:2.1.1'
//rxandroid
implementation 'io.reactivex.rxjava2:rxandroid:2.0.1'
//配合Rxjava 使用
implementation 'com.squareup.retrofit2:adapter-rxjava2:2.3.0'
//xrecyclerview
compile 'com.jcodecraeer:xrecyclerview:1.5.9'
事件分發
//事件分發、消息機制
compile files('libs/event.jar')
//eventBus
implementation 'org.greenrobot:eventbus:3.1.1'
百度、騰訊、阿里
//百度
//百度地圖功能
compile files('libs/BaiduLBS_Android.jar')
//騰訊
//騰訊開發的應用、卡頓、崩潰跟蹤監測,用於提高app質量的 crash崩潰
compile 'com.tencent.bugly:crashreport:2.1.1'
//阿里
//阿里巴巴開發的安卓bug熱修復框架
compile 'com.alipay.euler:andfix:0.4.0@aar'
//同盾服務,用於解決支付安全的問題
compile files('libs/fraudmetrix-2.0.9.jar')
//支付寶支付功能
compile files('libs/alipaysecsdk.jar')
compile files('libs/alipaysdk.jar')
友盟統計
//友盟統計與分析功能
compile files('libs/umeng-analytics-v5.2.4.jar')
//友盟社會化分享功能
compile files('libs/umeng_social_sdk.jar')
//友盟即時通訊功能
compile files('libs/utdid4all-1.0.4.jar')
//友盟用戶反饋功能
compile files('libs/umeng-feedback-v4.3.jar')
//友盟消息推送功能
compile files('libs/com.umeng.message.lib.jar')
其他第三方
//小能科技 客服系統功能
compile project(':XiaonengChatUI')
其他工具
//Dex 文件方法數超過了最大值65536的上限
compile 'com.android.support:multidex:1.0.0'
//手勢交互開源庫 dragtoplayout
compile 'com.github.chenupt.android:dragtoplayout:1.2.1@aar'
//媒體服務
compile files('libs/mediaservice-4.0.4.jar')
//延遲深度鏈接
compile files('libs/deepshare-v2.0.9.jar')
//Crash對移動端應用的用戶留存率、口碑和收入都有非常大的影響!用戶存留度。
//DeepShare是一款基於延遲深度鏈接(Deferred DeepLink) 的SDK。它能減少用戶使用App時的跨平臺、跨頁面跳轉,允許Web端到App端內容的直達。
參考:
《一些常用的項目依賴》https://blog.csdn.net/chenrushui/article/details/51892071
《Android常用依賴》https://blog.csdn.net/qq_19681347/article/details/80027208