build.gradle 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. plugins {
  2. id 'com.android.library'
  3. }
  4. apply plugin: 'kotlin-android'
  5. apply from: 'publish.gradle'
  6. android {
  7. compileSdk 32
  8. defaultConfig {
  9. minSdk 21
  10. targetSdk 32
  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. compileOptions {
  20. sourceCompatibility JavaVersion.VERSION_1_8
  21. targetCompatibility JavaVersion.VERSION_1_8
  22. }
  23. }
  24. configurations.all {
  25. resolutionStrategy {
  26. // don't cache changing modules at all
  27. cacheChangingModulesFor 10, 'seconds'
  28. }
  29. }
  30. dependencies {
  31. api fileTree(dir: "libs", include: ["*.jar"])
  32. api("plus.net.okhttp3:okhttp:4.10.0-SNAPSHOT")
  33. api("plus.net.retrofit2:retrofit:2.9.0-SNAPSHOT")
  34. api("plus.net.retrofit2:adapters-rxjava3:2.9.0-SNAPSHOT")
  35. api("plus.net.retrofit2:converters-gson:2.9.0-SNAPSHOT")
  36. // implementation "extra.room:room-rxjava3:2.5.0-SNAPSHOT"
  37. compileOnly 'com.google.code.gson:gson:+'
  38. compileOnly 'androidx.annotation:annotation:+'
  39. compileOnly 'com.google.protobuf:protobuf-javalite:+'
  40. compileOnly project(":common")
  41. compileOnly project(":rxjava")
  42. }