build.gradle 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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 project(':core')
  34. api lib.support.v7
  35. api lib.support.v4
  36. api(lib.support.constraint) {
  37. exclude group: "com.android.support"
  38. }
  39. api lib.lifecycle.runtime
  40. api lib.lifecycle.extensions
  41. annotationProcessor lib.lifecycle.compiler
  42. // log日志
  43. api(lib.log) {
  44. exclude group: "com.android.support"
  45. }
  46. // // 工具集合
  47. // api(lib.utilcode) {
  48. // exclude group: "com.android.support"
  49. // }
  50. // // glide
  51. api(lib.glide.core) {
  52. exclude group: "com.android.support"
  53. }
  54. annotationProcessor(lib.glide.compiler) {
  55. exclude group: "com.android.support"
  56. }
  57. // 网络请求
  58. api(lib.http) {
  59. exclude group: "com.android.support"
  60. }
  61. // json
  62. api(lib.json) {
  63. exclude group: "com.android.support"
  64. }
  65. // api(lib.gson) {
  66. // exclude group: "com.android.support"
  67. // }
  68. //
  69. // api lib.retrofit2.core
  70. // api lib.retrofit2.rxjava2
  71. // api lib.retrofit2.gson
  72. // // 网络请求日志拦截器
  73. // api(lib.retrofit2.logger) {
  74. // exclude group: 'org.json', module: 'json'
  75. // }
  76. //
  77. // api lib.rxjava2
  78. // api lib.rxAndroid
  79. // api lib.video.GSYVideoPlayer
  80. api 'com.liulishuo.filedownloader:library:1.7.5'
  81. api 'com.makeramen:roundedimageview:2.3.0'
  82. implementation 'com.squareup.okhttp3:okhttp:3.12.1'
  83. }