gradle build功能性依赖整理 必要依赖 //provided是指编译的时候依赖这个jar包,但是最终打包的时候不打进去 provided files("libs/google-play-services.jar") //lib依赖 implementation fileTree(inclu
gradle build功能性依赖整理
必要依赖
provided files("libs/google-play-services.jar")
//lib依赖
implementation fileTree(include: ['*.jar'], dir: 'libs')
//RxJava
implementation 'io.reactivex.rxjava2:rxjava:2.2.14'
implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'
//kotlin
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
//androidx
implementation 'androidx.core:core-ktx:1.2.0'
implementation 'androidx.appcompat:appcompat:1.1.0'
//material-Design
implementation 'com.google.android.material:material:1.2.0'
//测试
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
//协程
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.8'
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.3'
// 分包
implementation 'com.android.support:multidex:1.0.3'
// 动态权限申请
implementation 'com.tbruyelle.rxpermissions2:rxpermissions:0.9.5@aar'
//广播
implementation 'androidx.localbroadcastmanager:localbroadcastmanager:1.0.0'
JetPack
// 导航implementation 'androidx.navigation:navigation-fragment-ktx:2.3.5'
implementation 'androidx.navigation:navigation-ui-ktx:2.3.5'
// ViewModel,Lifecycle,LiveData(新)
implementation 'android.arch.lifecycle:viewmodel:1.1.1'
implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.2.0'
// room db
annotationProcessor 'android.arch.persistence.room:compiler:1.1.1'
布局
implementation 'androidx.recyclerview:recyclerview:1.2.0-alpha04'//RecyclerView布局implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.0.0"//下拉刷新
//自适应
implementation 'me.jessyan:autosize:1.2.1'
// 标签
implementation 'co.lujun:androidtagview:1.1.4'
// PickerView
implementation 'com.contrarywind:Android-PickerView:4.1.8'
// MagicIndicator指示器
implementation 'com.github.hackware1993:MagicIndicator:1.5.0'
图片
//网络图片implementation 'com.github.bumptech.glide:glide:4.11.0'
kapt 'com.github.bumptech.glide:compiler:4.11.0'//强大的开源图片加载库
//图片圆形化
implementation 'de.hdodenhof:circleimageview:3.1.0'
// Matisse(图片选择)
implementation('com.zhihu.android:matisse:0.5.2-beta3') {
exclude group: 'com.android.support'
}
// 图片裁切(固定比例,旋转,缩放)
implementation 'com.github.yalantis:ucrop:2.2.2'
// 图片压缩
implementation 'top.zibin:Luban:1.1.8'
// 图片预览
implementation 'com.github.chrisbanes:PhotoView:2.1.4'
其他第三方
//网络implementation 'com.google.code.gson:gson:2.6.2'
implementation 'com.squareup.okhttp3:okhttp:5.0.0-alpha.2'//okhttp
implementation 'com.squareup.retrofit2:retrofit:2.9.0'//retrofit
implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
implementation 'com.squareup.retrofit2:converter-scalars:2.5.0'
implementation "com.squareup.retrofit2:adapter-rxjava2:2.6.1"
implementation('com.github.ihsanbal:LoggingInterceptor:3.0.0') {//拦截器
exclude group: 'org.json', module: 'json'
}
// 第三方加载动画
implementation 'com.github.ybq:Android-SpinKit:1.2.0'
// 汉语转拼音
implementation 'com.belerweb:pinyin4j:2.5.0'
// 腾讯云存储(图片上传)
implementation 'com.tencent.qcloud:cosxml:5.4.13'
// 极光推送
implementation 'cn.jiguang.sdk:jpush:3.3.4'
implementation 'cn.jiguang.sdk:jcore:2.1.2'