build.gradle 2.5 KB

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