build.gradle 2.6 KB

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