build.gradle 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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-security'
  9. VERSION = '6.0.1'
  10. }
  11. if (project.FRAME_DEBUG != "true") {
  12. apply from: "../../publish.gradle"
  13. }
  14. android {
  15. namespace 'com.adealink.frame.security'
  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. //androidx
  39. implementation libs.androidx.core.ktx
  40. //frame
  41. compileOnly project(":frame:coroutine")
  42. compileOnly project(":frame:util")
  43. compileOnly project(":frame:zero")
  44. compileOnly project(":frame:base")
  45. compileOnly project(":frame:zero")
  46. compileOnly project(":frame:log")
  47. compileOnly project(":frame:data")
  48. compileOnly project(":frame:download")
  49. compileOnly project(":frame:storage")
  50. //test
  51. testImplementation libs.junit
  52. androidTestImplementation libs.androidx.junit
  53. androidTestImplementation libs.androidx.espresso.core
  54. }