build.gradle 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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-startup'
  9. VERSION = '6.0.2'
  10. }
  11. if (project.FRAME_DEBUG != "true") {
  12. apply from: "../../publish.gradle"
  13. }
  14. android {
  15. namespace 'com.adealink.frame.startup'
  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. // gson
  44. compileOnly libs.gson
  45. //frame
  46. compileOnly project(":frame:zero")
  47. compileOnly project(":frame:data")
  48. compileOnly project(":frame:base")
  49. compileOnly project(":frame:util")
  50. compileOnly project(":frame:coroutine")
  51. compileOnly project(":frame:log")
  52. //test
  53. testImplementation libs.junit
  54. androidTestImplementation libs.androidx.junit
  55. androidTestImplementation libs.androidx.espresso.core
  56. }