build.gradle 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. apply plugin: 'com.android.library'
  2. android {
  3. compileSdkVersion versions.compileSdk
  4. defaultConfig {
  5. minSdkVersion versions.minSdk
  6. targetSdkVersion versions.targetSdk
  7. versionCode 1
  8. versionName "1.0"
  9. testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
  10. }
  11. dataBinding {
  12. enabled = true
  13. }
  14. buildTypes {
  15. debug {
  16. // zipAlignEnabled true
  17. // shrinkResources true
  18. // debuggable true
  19. minifyEnabled false
  20. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  21. }
  22. release {
  23. minifyEnabled false
  24. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  25. }
  26. }
  27. }
  28. dependencies {
  29. implementation fileTree(include: ['*.jar'], dir: 'libs')
  30. testImplementation lib.test.junit
  31. androidTestImplementation lib.test.runner
  32. androidTestImplementation lib.test.espresso
  33. api lib.support.v7
  34. api lib.support.v4
  35. api(lib.support.constraint) {
  36. exclude group: "com.android.support"
  37. }
  38. api lib.lifecycle.runtime
  39. api lib.lifecycle.extensions
  40. annotationProcessor lib.lifecycle.compiler
  41. // log日志
  42. api(lib.log) {
  43. exclude group: "com.android.support"
  44. }
  45. // // 工具集合
  46. // api(lib.utilcode) {
  47. // exclude group: "com.android.support"
  48. // }
  49. // // glide
  50. api(lib.glide.core) {
  51. exclude group: "com.android.support"
  52. }
  53. annotationProcessor(lib.glide.compiler) {
  54. exclude group: "com.android.support"
  55. }
  56. // 网络请求
  57. api(lib.http) {
  58. exclude group: "com.android.support"
  59. }
  60. // json
  61. api(lib.json) {
  62. exclude group: "com.android.support"
  63. }
  64. // api(lib.gson) {
  65. // exclude group: "com.android.support"
  66. // }
  67. //
  68. // api lib.retrofit2.core
  69. // api lib.retrofit2.rxjava2
  70. // api lib.retrofit2.gson
  71. // // 网络请求日志拦截器
  72. // api(lib.retrofit2.logger) {
  73. // exclude group: 'org.json', module: 'json'
  74. // }
  75. //
  76. // api lib.rxjava2
  77. // api lib.rxAndroid
  78. // api lib.video.GSYVideoPlayer
  79. // api lib.video.exo2
  80. //根据你的需求
  81. // api lib.video.armv5
  82. // api lib.video.armv7a
  83. // api lib.video.arm64
  84. // api lib.video.x64
  85. // api lib.video.x86
  86. api 'com.liulishuo.filedownloader:library:1.7.5'
  87. api 'com.makeramen:roundedimageview:2.3.0'
  88. implementation 'com.squareup.okhttp3:okhttp:3.12.1'
  89. }