build.gradle 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. plugins {
  2. id 'com.android.library'
  3. id 'org.jetbrains.kotlin.android'
  4. id 'maven-publish'
  5. }
  6. ext {
  7. GROUP_ID = 'com.gami.android'
  8. ARTIFACT_ID = 'frame-deviceid'
  9. VERSION = '1.0.0'
  10. }
  11. if (project.FRAME_DEBUG != "true") {
  12. apply from: "../../publish.gradle"
  13. }
  14. android {
  15. namespace 'com.adealink.frame.deviceid'
  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.kotlin.stdlib
  40. //androidx
  41. implementation libs.androidx.core.ktx
  42. implementation libs.androidx.appcompat
  43. //frame
  44. compileOnly project(":frame:util")
  45. compileOnly project(":frame:zero")
  46. compileOnly project(":frame:base")
  47. compileOnly project(":frame:zero")
  48. compileOnly project(":frame:coroutine")
  49. compileOnly project(":frame:data")
  50. compileOnly project(":frame:log")
  51. compileOnly project(":frame:mvvm")
  52. //test
  53. testImplementation libs.junit
  54. androidTestImplementation libs.androidx.junit
  55. androidTestImplementation libs.androidx.espresso.core
  56. }