build.gradle 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. apply plugin: 'com.android.library'
  2. android {
  3. compileSdkVersion COMPILE_SDK_VERSION as int
  4. buildToolsVersion BUILD_TOOLS_VERSION
  5. defaultConfig {
  6. minSdkVersion MIN_SDK_VERSION
  7. targetSdkVersion TARGET_SDK_VERSION as int
  8. versionCode 1
  9. versionName "1.0"
  10. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  11. consumerProguardFiles 'consumer-rules.pro'
  12. }
  13. buildTypes {
  14. release {
  15. minifyEnabled false
  16. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  17. }
  18. }
  19. compileOptions {
  20. sourceCompatibility = 1.8
  21. targetCompatibility = 1.8
  22. }
  23. }
  24. dependencies {
  25. implementation fileTree(dir: 'libs', include: ['*.jar'])
  26. implementation 'androidx.appcompat:appcompat:1.2.0'
  27. testImplementation 'junit:junit:4.12'
  28. androidTestImplementation 'androidx.test.ext:junit:1.1.2'
  29. androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
  30. api 'com.qmuiteam:qmui:1.2.0'
  31. //design 包依赖
  32. implementation "com.android.support:design:29.0.0"
  33. //网络请求依赖
  34. api 'io.reactivex.rxjava2:rxjava:2.2.4'
  35. api 'io.reactivex.rxjava2:rxandroid:2.0.2'
  36. api 'com.squareup.retrofit2:retrofit:2.4.0'
  37. api 'com.squareup.retrofit2:converter-gson:2.4.0'
  38. api 'com.squareup.retrofit2:adapter-rxjava2:2.4.0'
  39. api 'com.squareup.okhttp3:okhttp:3.11.0'
  40. api 'com.squareup.okhttp3:logging-interceptor:3.10.0'
  41. api 'com.squareup.retrofit2:converter-scalars:2.3.0'
  42. api 'com.google.code.gson:gson:2.8.5'
  43. //butterknife 依赖
  44. api 'com.jakewharton:butterknife:10.2.3'
  45. annotationProcessor 'com.jakewharton:butterknife-compiler:10.2.3'
  46. //glide
  47. api 'com.github.bumptech.glide:glide:4.9.0'
  48. annotationProcessor 'com.github.bumptech.glide:compiler:4.9.0'
  49. //RecyclerViewAdapter 依赖
  50. api 'com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.46'
  51. //fastJson
  52. api 'com.alibaba:fastjson:1.1.71.android'
  53. //防止rxJava内存泄漏
  54. api 'com.trello.rxlifecycle2:rxlifecycle-components:2.1.0'
  55. //沉浸式状态栏
  56. api('com.github.niorgai:StatusBarCompat:2.3.3', {
  57. exclude group: 'androidx.appcompat:appcompat'
  58. exclude group: 'com.google.android.material:material'
  59. })
  60. api 'com.makeramen:roundedimageview:2.2.1' // 此处为引入开源库代码
  61. //loader
  62. api 'com.wang.avi:library:2.1.3'
  63. api 'com.github.PhilJay:MPAndroidChart:v3.1.0'
  64. api 'me.dm7.barcodescanner:zxing:1.9.13'
  65. // RxPermissions 的使用方法详解
  66. api 'com.github.tbruyelle:rxpermissions:0.10.2'
  67. api 'org.greenrobot:eventbus:3.2.0'
  68. }