build.gradle 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. plugins {
  2. id 'com.android.application'
  3. }
  4. android {
  5. compileSdkVersion 30
  6. buildToolsVersion "30.0.3"
  7. defaultConfig {
  8. applicationId "com.yhx.union"
  9. minSdkVersion 19
  10. targetSdkVersion 30
  11. versionCode 1
  12. versionName "1.0"
  13. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  14. }
  15. buildTypes {
  16. release {
  17. minifyEnabled false
  18. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  19. }
  20. }
  21. compileOptions {
  22. sourceCompatibility JavaVersion.VERSION_1_8
  23. targetCompatibility JavaVersion.VERSION_1_8
  24. }
  25. }
  26. dependencies {
  27. implementation 'androidx.appcompat:appcompat:1.1.0'
  28. implementation 'com.google.android.material:material:1.1.0'
  29. implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
  30. testImplementation 'junit:junit:4.+'
  31. androidTestImplementation 'androidx.test.ext:junit:1.1.1'
  32. androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
  33. //图片加载框架
  34. implementation 'com.github.bumptech.glide:glide:4.12.0'
  35. annotationProcessor 'com.github.bumptech.glide:compiler:4.12.0'
  36. implementation 'com.github.bumptech.glide:okhttp3-integration:4.12.0'
  37. //butterknife
  38. implementation 'com.jakewharton:butterknife:10.0.0'
  39. annotationProcessor 'com.jakewharton:butterknife-compiler:10.0.0'
  40. //rxjava2
  41. implementation 'io.reactivex.rxjava2:rxjava:2.1.3'
  42. implementation 'io.reactivex.rxjava2:rxandroid:2.0.1'
  43. //retrofit2
  44. implementation 'com.squareup.retrofit2:retrofit:2.3.0'
  45. implementation 'com.squareup.retrofit2:converter-gson:2.3.0'
  46. //okhttp3
  47. implementation 'com.squareup.okhttp3:okhttp:4.2.2'
  48. implementation 'com.jakewharton.retrofit:retrofit2-rxjava2-adapter:1.0.0'
  49. //控制Rxjava生命周期
  50. implementation 'com.uber.autodispose:autodispose:0.8.0'
  51. implementation 'com.uber.autodispose:autodispose-android-archcomponents:0.8.0'
  52. //下拉刷新上拉加载更多
  53. implementation 'com.scwang.smart:refresh-layout-kernel:2.0.1' //核心必须依赖
  54. implementation 'com.scwang.smart:refresh-header-material:2.0.1' //经典刷新头
  55. implementation 'com.scwang.smart:refresh-footer-classics:2.0.1' //经典加载
  56. //轮播图
  57. implementation 'cn.bingoogolapple:bga-banner:2.1.7@aar'
  58. //gson
  59. implementation 'com.google.code.gson:gson:2.8.0'
  60. }