build.gradle 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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-base'
  9. VERSION = '6.0.4'
  10. }
  11. if (project.FRAME_DEBUG != "true") {
  12. apply from: "../../publish.gradle"
  13. }
  14. android {
  15. namespace 'com.adealink.frame.base'
  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. compileOnly libs.androidx.annotation
  42. //frame
  43. compileOnly project(":frame:zero")
  44. compileOnly project(":frame:coroutine")
  45. }