build.gradle 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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-util'
  9. VERSION = '6.0.10'
  10. }
  11. if (project.FRAME_DEBUG != "true") {
  12. apply from: "../../publish.gradle"
  13. }
  14. android {
  15. namespace 'com.adealink.frame.util'
  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. }
  33. kotlinOptions {
  34. jvmTarget = JavaVersion.VERSION_17.majorVersion
  35. }
  36. }
  37. dependencies {
  38. //kotlin
  39. implementation libs.kotlinx.coroutines.core
  40. implementation libs.kotlinx.coroutines.android
  41. //androidx
  42. implementation libs.androidx.core
  43. implementation libs.androidx.core.ktx
  44. implementation libs.androidx.appcompat
  45. //google
  46. implementation libs.play.feature.delivery
  47. implementation libs.play.feature.delivery.ktx
  48. implementation libs.google.lib.phone.number
  49. //io
  50. implementation libs.okio
  51. //library
  52. implementation libs.relinker
  53. //frame
  54. compileOnly project(":frame:data")
  55. compileOnly project(":frame:zero")
  56. compileOnly project(":frame:base")
  57. compileOnly project(":frame:zero")
  58. compileOnly project(":external:AndroidAutoSize")
  59. //test
  60. testImplementation libs.junit
  61. androidTestImplementation libs.androidx.junit
  62. androidTestImplementation libs.androidx.espresso.core
  63. }