build.gradle 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. apply plugin: 'com.android.library'
  2. android {
  3. compileSdkVersion 30
  4. buildToolsVersion "30.0.3"
  5. defaultConfig {
  6. minSdkVersion 19
  7. targetSdkVersion 30
  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. }
  20. dependencies {
  21. api fileTree(dir: 'libs', include: ['*.jar'])
  22. api 'androidx.appcompat:appcompat:1.0.2'
  23. api 'androidx.lifecycle:lifecycle-common-java8:2.3.1'
  24. testImplementation 'junit:junit:4.12'
  25. androidTestImplementation 'androidx.test.ext:junit:1.1.0'
  26. androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
  27. api 'com.yanzhenjie:permission:2.0.3'
  28. annotationProcessor 'org.projectlombok:lombok:1.18.16'
  29. api 'org.projectlombok:lombok:1.18.16' //添加lombok依赖
  30. api 'com.jakewharton:butterknife:10.0.0'
  31. annotationProcessor 'com.jakewharton:butterknife-compiler:10.0.0'
  32. api 'androidx.appcompat:appcompat:1.2.0'
  33. api 'androidx.constraintlayout:constraintlayout:2.0.4'
  34. api 'androidx.legacy:legacy-support-v4:1.0.0'
  35. api 'androidx.recyclerview:recyclerview:1.1.0'
  36. api 'androidx.recyclerview:recyclerview-selection:1.0.0'
  37. api 'androidx.cardview:cardview:1.0.0'
  38. //okhttp3
  39. api 'com.squareup.okhttp3:okhttp:4.2.2'
  40. api 'com.squareup.okhttp3:logging-interceptor:4.2.2'
  41. //retrofit2
  42. api 'com.squareup.retrofit2:retrofit:2.6.2'
  43. api 'com.squareup.retrofit2:converter-gson:2.6.2'
  44. api 'com.squareup.retrofit2:adapter-rxjava2:2.6.0'
  45. api 'com.squareup.retrofit2:converter-scalars:2.0.0'
  46. //导入scalars包
  47. //rxjava2
  48. api 'io.reactivex.rxjava2:rxjava:2.2.15'
  49. api 'io.reactivex.rxjava2:rxandroid:2.1.1'
  50. api 'com.yanzhenjie:album:2.1.3'
  51. api 'com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.37'
  52. api 'com.google.code.gson:gson:2.8.6'
  53. api 'com.github.bumptech.glide:glide:4.11.0'
  54. api 'me.weyye.hipermission:library:1.0.7'
  55. api 'com.google.android.material:material:1.3.0'
  56. api 'com.scwang.smartrefresh:SmartRefreshLayout:1.1.0-alpha-28'
  57. api 'com.scwang.smartrefresh:SmartRefreshHeader:1.1.0-alpha-28'
  58. api 'com.scwang.smartrefresh:SmartRefreshHorizontal:1.0.0-beta-1'
  59. // api 'org.greenrobot:eventbus:3.1.1'
  60. api 'pub.devrel:easypermissions:1.3.0'
  61. api project(path: ':autosize')
  62. api 'com.gyf.immersionbar:immersionbar:3.0.0-beta05'
  63. }