build.gradle 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. apply plugin: 'com.android.library'
  2. android {
  3. compileSdkVersion 29
  4. buildToolsVersion "29.0.3"
  5. defaultConfig {
  6. minSdkVersion 21
  7. targetSdkVersion 29
  8. versionCode 1
  9. versionName "1.0"
  10. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  11. }
  12. buildTypes {
  13. release {
  14. minifyEnabled false
  15. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  16. }
  17. }
  18. compileOptions {
  19. sourceCompatibility JavaVersion.VERSION_1_8
  20. targetCompatibility JavaVersion.VERSION_1_8
  21. }
  22. }
  23. dependencies {
  24. implementation fileTree(dir: 'libs', include: ['*.jar'])
  25. implementation 'androidx.activity:activity:1.2.4'
  26. //noinspection GradleDependency
  27. implementation 'androidx.appcompat:appcompat:1.3.0'
  28. //design 包依赖
  29. //noinspection GradleCompatible
  30. api "com.android.support:design:29.0.3"
  31. //网络请求依赖
  32. //noinspection GradleDependency
  33. api 'io.reactivex.rxjava2:rxjava:2.2.4'
  34. //noinspection GradleDependency
  35. api 'io.reactivex.rxjava2:rxandroid:2.0.2'
  36. //noinspection GradleDependency
  37. api 'com.squareup.retrofit2:retrofit:2.4.0'
  38. //noinspection GradleDependency
  39. api 'com.squareup.retrofit2:converter-gson:2.4.0'
  40. api 'com.squareup.retrofit2:adapter-rxjava2:2.4.0'
  41. //noinspection GradleDependency
  42. api 'com.squareup.okhttp3:okhttp:3.11.0'
  43. api 'com.squareup.okhttp3:logging-interceptor:3.10.0'
  44. api 'com.squareup.retrofit2:converter-scalars:2.3.0'
  45. //noinspection GradleDependency
  46. api 'com.google.code.gson:gson:2.8.5'
  47. //butterknife 依赖
  48. api 'com.jakewharton:butterknife:10.2.3'
  49. annotationProcessor 'com.jakewharton:butterknife-compiler:10.2.3'
  50. //glide
  51. //noinspection GradleDependency
  52. api 'com.github.bumptech.glide:glide:4.9.0'
  53. annotationProcessor 'com.github.bumptech.glide:compiler:4.9.0'
  54. //RecyclerViewAdapter 依赖
  55. //noinspection GradleDependency
  56. api 'com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.46'
  57. //fastJson
  58. api 'com.alibaba:fastjson:1.1.71.android'
  59. //防止rxJava内存泄漏
  60. api 'com.trello.rxlifecycle2:rxlifecycle-components:2.1.0'
  61. //沉浸式状态栏
  62. api('com.github.niorgai:StatusBarCompat:2.3.3', {
  63. exclude group: 'androidx.appcompat:appcompat'
  64. exclude group: 'com.google.android.material:material'
  65. })
  66. //loader
  67. api 'com.wang.avi:library:2.1.3'
  68. // RxPermissions 的使用方法详解
  69. api 'com.github.tbruyelle:rxpermissions:0.10.2'
  70. api 'org.greenrobot:eventbus:3.2.0'
  71. }