build.gradle 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. plugins {
  2. alias(libs.plugins.androidLibrary)
  3. }
  4. android {
  5. namespace 'com.zzyd.http'
  6. compileSdk 34
  7. defaultConfig {
  8. minSdk 24
  9. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  10. consumerProguardFiles "consumer-rules.pro"
  11. }
  12. buildTypes {
  13. release {
  14. minifyEnabled false
  15. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  16. }
  17. }
  18. compileOptions {
  19. sourceCompatibility JavaVersion.VERSION_1_8
  20. targetCompatibility JavaVersion.VERSION_1_8
  21. }
  22. }
  23. dependencies {
  24. implementation libs.appcompat
  25. implementation libs.material
  26. testImplementation libs.junit
  27. androidTestImplementation libs.ext.junit
  28. androidTestImplementation libs.espresso.core
  29. implementation project(':datalibrary')
  30. //lombok 组件
  31. compileOnly 'org.projectlombok:lombok:1.18.34'
  32. annotationProcessor 'org.projectlombok:lombok:1.18.34'
  33. // 新的网络访问框架
  34. api "com.squareup.retrofit2:retrofit:2.9.0"
  35. api "com.squareup.retrofit2:adapter-rxjava2:2.5.0"
  36. api "com.squareup.retrofit2:converter-gson:2.9.0"
  37. api 'org.ligboy.retrofit2:converter-fastjson-android:2.1.0'
  38. // implementation 'com.squareup.okhttp3:okhttp:4.9.0'
  39. api 'com.squareup.okhttp3:logging-interceptor:4.9.3'
  40. //Android异步库RxAndroid
  41. api 'io.reactivex.rxjava2:rxandroid:2.1.1'
  42. api 'io.reactivex.rxjava2:rxjava:2.2.6'
  43. api 'com.github.yangchong211.YCAndroidTool:MonitorFileLib:1.2.8'
  44. api 'com.github.yangchong211.YCAndroidTool:MonitorNetLib:1.2.8'
  45. }