build.gradle 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. apply plugin: 'com.android.library'
  2. apply plugin: 'com.jakewharton.butterknife'
  3. android {
  4. compileSdkVersion rootProject.ext.compileSdkVersion
  5. aaptOptions.cruncherEnabled = false
  6. aaptOptions.useNewCruncher = false
  7. defaultConfig {
  8. minSdkVersion rootProject.ext.minSdkVersion
  9. targetSdkVersion rootProject.ext.targetSdkVersion
  10. versionCode 1
  11. versionName "1.0"
  12. vectorDrawables.useSupportLibrary = true
  13. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  14. consumerProguardFiles 'consumer-rules.pro'
  15. }
  16. packagingOptions {
  17. exclude 'META-INF/library_release.kotlin_module'
  18. }
  19. buildTypes {
  20. release {
  21. minifyEnabled true
  22. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  23. }
  24. }
  25. compileOptions {
  26. sourceCompatibility JavaVersion.VERSION_1_8
  27. targetCompatibility JavaVersion.VERSION_1_8
  28. }
  29. }
  30. repositories {
  31. flatDir {
  32. dirs 'libs'
  33. }
  34. }
  35. dependencies {
  36. implementation fileTree(dir: 'libs', include: ['*.jar'])
  37. implementation 'androidx.appcompat:appcompat:1.1.0'
  38. api 'com.android.support:design:29.0.0'
  39. api 'androidx.recyclerview:recyclerview:1.1.0'
  40. api 'com.github.CymChad:BaseRecyclerViewAdapterHelper:3.0.1'
  41. api 'com.lxj:xpopup:1.8.13'
  42. api 'com.jakewharton:butterknife:10.2.1'
  43. annotationProcessor 'com.jakewharton:butterknife-compiler:10.2.1'
  44. api 'org.greenrobot:eventbus:3.2.0'
  45. //textview超链接处理
  46. api 'com.github.CarGuo.RickText:textUtilsLib:v2.1.5'
  47. //文本点击渲染 https://github.com/klinker24/Android-TextView-LinkBuilder
  48. api 'com.klinkerapps:link_builder:2.0.5'
  49. api 'androidx.multidex:multidex:2.0.1'
  50. //快速分组侧边栏 https://github.com/saiwu-bigkoo/Android-QuickSideBar
  51. api 'com.bigkoo:quicksidebar:1.0.3'
  52. //网络
  53. api 'com.lzy.net:okgo:3.0.4'
  54. api 'com.lzy.net:okrx2:2.0.2'
  55. api 'com.lzy.net:okserver:2.0.5'
  56. api 'com.alibaba:fastjson:1.1.71.android'
  57. //动态权限
  58. api 'com.tbruyelle.rxpermissions2:rxpermissions:0.9.5@aar'
  59. //圆角图片
  60. api 'com.makeramen:roundedimageview:2.3.0'//glide
  61. api("com.github.bumptech.glide:glide:4.9.0@aar") {
  62. transitive = true
  63. }
  64. annotationProcessor 'com.github.bumptech.glide:compiler:4.9.0'
  65. //https://github.com/zhihu/Matisse
  66. api 'com.zhihu.android:matisse:0.5.2-beta2'
  67. //汉字转拼音 https://github.com/promeG/TinyPinyin
  68. api 'com.github.promeg:tinypinyin:2.0.3'
  69. //刷新
  70. api 'com.scwang.smartrefresh:SmartRefreshLayout:1.1.0'
  71. //没有使用特殊Header,可以不加这行
  72. api 'com.scwang.smartrefresh:SmartRefreshHeader:1.1.0'
  73. api 'com.github.ybq:Android-SpinKit:1.4.0'
  74. //tablayout
  75. api 'com.github.hackware1993:MagicIndicator:1.5.0'
  76. //二维码扫描
  77. api 'cn.yipianfengye.android:zxing-library:2.2'
  78. api 'com.squareup.retrofit2:retrofit:2.9.0'
  79. implementation ('com.squareup.retrofit2:converter-gson:2.3.0'){
  80. exclude group : 'com.google.code.gson'
  81. }
  82. implementation 'com.squareup.retrofit2:converter-gson:2.3.0'
  83. api "com.squareup.okhttp3:logging-interceptor:3.6.0"
  84. api "com.squareup.retrofit2:adapter-rxjava2:2.3.0"
  85. api "io.reactivex.rxjava2:rxjava:2.2.19"
  86. api "io.reactivex.rxjava2:rxandroid:2.0.2"
  87. //imaoIm库
  88. api 'com.limao.im.limaoimlib:LiMaoImLib:1.0.1'
  89. // api 'com.limao.im.limaoimlib:LiMaoImLib:1.0.0'
  90. // api 'com.limao.im.limaoimlib:LiMaoImLib:1.1.0'
  91. }