Android——github專案(持續更新)
阿新 • • 發佈:2018-11-09
maven { url “https://jitpack.io” }
//在專案的build.gradle中加入
allprojects {
repositories {
google()
jcenter()
maven { url "https://jitpack.io" }
}
}
Retrofit2.0 + OkHttp3 + RxJava(RxAndroid) 網路請求
compile 'com.squareup.retrofit2:retrofit:2.2.0' compile 'com.squareup.retrofit2:converter-gson:2.2.0' compile 'com.squareup.retrofit2:adapter-rxjava:2.2.0' compile 'io.reactivex:rxjava:1.0.14' compile 'io.reactivex:rxandroid:1.0.1'
ARouter 路由跳轉
defaultConfig {
...
javaCompileOptions {
annotationProcessorOptions {
arguments = [ moduleName : project.getName() ]
}
}
}
compile 'com.alibaba:arouter-api:1.2.4'
annotationProcessor 'com.alibaba:arouter-compiler:1.1.4'
ButterKnife 元件繫結
implementation 'com.jakewharton:butterknife:8.8.1' annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'
BaseRecyclerViewAdapterHelper 介面卡
compile 'com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.22'
Dialog
compile ('com.afollestad.material-dialogs:core:0.9.4.2') {
exclude group: 'com.android.support'
}
Log
compile 'com.orhanobut:logger:1.15'
gson
compile 'com.google.code.gson:gson:2.8.2'
EventBus
compile 'org.greenrobot:eventbus:3.1.1'
RxPermission
compile 'com.tbruyelle.rxpermissions:rxpermissions:[email protected]'
dagger2 依賴注入
annotationProcessor 'com.google.dagger:dagger-compiler:2.11'
compile 'com.google.dagger:dagger:2.11'
compile 'javax.annotation:javax.annotation-api:1.2'
Glide
compile 'com.github.bumptech.glide:glide:3.7.0'
design
compile 'com.android.support:recyclerview-v7:26.1.0'
compile 'com.android.support:design:26.1.0'
compile 'com.android.support:cardview-v7:26.1.0'
badgeView 右上角未讀訊息
compile 'q.rorbin:badgeview:1.1.3'
compile 'com.github.lzyzsd:jsbridge:1.0.4'
HelloCharts 圖表
compile 'com.github.lecho:hellocharts-android:v1.5.8'
Room 資料庫
compile "android.arch.persistence.room:runtime:1.0.0"
annotationProcessor "android.arch.persistence.room:compiler:1.0.0"
compile "android.arch.persistence.room:rxjava2:1.0.0"
SwipeToLoadLayout 重新整理框架
compile 'com.github.Aspsine:SwipeToLoadLayout:1.0.4'
Rebound 彈簧動畫框架
compile 'com.facebook.rebound:rebound:0.3.8'