build.gradle 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. plugins {
  2. id 'com.android.library'
  3. id 'org.jetbrains.kotlin.android'
  4. id 'maven-publish'
  5. }
  6. ext {
  7. GROUP_ID = 'com.wenext.android'
  8. ARTIFACT_ID = 'frame-network'
  9. VERSION = '6.1.2'
  10. }
  11. if (project.FRAME_DEBUG != "true") {
  12. apply from: "../../publish.gradle"
  13. }
  14. android {
  15. namespace 'com.adealink.frame.network'
  16. compileSdk libs.versions.compileSdk.get().toInteger()
  17. defaultConfig {
  18. minSdk libs.versions.minSdk.get().toInteger()
  19. targetSdk libs.versions.targetSdk.get().toInteger()
  20. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  21. consumerProguardFiles "consumer-rules.pro"
  22. }
  23. buildTypes {
  24. release {
  25. minifyEnabled false
  26. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  27. }
  28. }
  29. compileOptions {
  30. sourceCompatibility JavaVersion.VERSION_17
  31. targetCompatibility JavaVersion.VERSION_17
  32. coreLibraryDesugaringEnabled true
  33. }
  34. kotlinOptions {
  35. jvmTarget = JavaVersion.VERSION_17.majorVersion
  36. }
  37. }
  38. dependencies {
  39. //kotlin
  40. implementation libs.kotlin.stdlib
  41. coreLibraryDesugaring libs.desugar.jdk.libs
  42. //androidx
  43. implementation libs.androidx.core.ktx
  44. implementation libs.androidx.appcompat
  45. //network
  46. api libs.okhttp
  47. implementation libs.conscrypt
  48. //frame
  49. // api platform(libs.frame.bom)
  50. // api libs.frame.retrofit
  51. // api libs.frame.zero
  52. // api libs.frame.base
  53. // api libs.frame.data
  54. // api libs.frame.coroutine
  55. // api libs.frame.util
  56. // api libs.frame.statistics
  57. // api libs.frame.storage
  58. compileOnly project(":external:retrofit")
  59. compileOnly project(":frame:zero")
  60. compileOnly project(":frame:base")
  61. compileOnly project(":frame:data")
  62. compileOnly project(":frame:coroutine")
  63. compileOnly project(":frame:util")
  64. compileOnly project(":frame:statistics")
  65. compileOnly project(":frame:storage")
  66. //test
  67. testImplementation libs.junit
  68. androidTestImplementation libs.androidx.junit
  69. androidTestImplementation libs.androidx.espresso.core
  70. }