build.gradle 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. plugins {
  2. id 'com.android.library'
  3. id 'org.jetbrains.kotlin.android'
  4. id 'maven-publish'
  5. }
  6. android {
  7. namespace "com.wenext.android.trace"
  8. compileSdk libs.versions.compileSdk.get().toInteger()
  9. defaultConfig {
  10. minSdk libs.versions.minSdk.get().toInteger()
  11. targetSdk libs.versions.targetSdk.get().toInteger()
  12. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  13. consumerProguardFiles "consumer-rules.pro"
  14. externalNativeBuild {
  15. cmake {
  16. cppFlags ""
  17. }
  18. }
  19. }
  20. buildTypes {
  21. release {
  22. minifyEnabled false
  23. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  24. }
  25. }
  26. externalNativeBuild {
  27. cmake {
  28. path "src/main/cpp/CMakeLists.txt"
  29. version "3.18.1"
  30. }
  31. }
  32. compileOptions {
  33. sourceCompatibility JavaVersion.VERSION_17
  34. targetCompatibility JavaVersion.VERSION_17
  35. }
  36. kotlinOptions {
  37. jvmTarget = JavaVersion.VERSION_17.majorVersion
  38. }
  39. }
  40. dependencies {
  41. implementation libs.kotlin.stdlib
  42. implementation libs.androidx.core.ktx
  43. compileOnly project(":frame:util")
  44. compileOnly project(":frame:zero")
  45. compileOnly project(":frame:base")
  46. compileOnly project(":frame:zero")
  47. implementation libs.mmkv
  48. api libs.gson
  49. compileOnly project(":frame:data")
  50. testImplementation 'junit:junit:4.+'
  51. androidTestImplementation 'androidx.test.ext:junit:1.1.2'
  52. androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
  53. }
  54. ext {
  55. GROUP_ID = 'com.wenext.android'
  56. ARTIFACT_ID = 'frame-trace-api'
  57. VERSION = '1.0.1'
  58. }
  59. apply from: "../../../publish.gradle"