build.gradle 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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 = 'SVGAPlayer'
  9. VERSION = '6.0.0'
  10. }
  11. if (project.FRAME_DEBUG != "true") {
  12. apply from: "../../publish.gradle"
  13. }
  14. android {
  15. namespace 'com.opensource.svgaplayer'
  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
  40. implementation libs.androidx.appcompat
  41. //android
  42. implementation libs.android.material
  43. //io
  44. implementation libs.okio
  45. //svga
  46. implementation libs.wire.runtime
  47. implementation libs.bolts.tasks
  48. //frame
  49. compileOnly project(":frame:zero")
  50. compileOnly project(":frame:base")
  51. compileOnly project(":frame:zero")
  52. compileOnly project(":frame:coroutine")
  53. compileOnly project(":frame:util")
  54. //test
  55. testImplementation libs.junit
  56. androidTestImplementation libs.androidx.junit
  57. androidTestImplementation libs.androidx.espresso.core
  58. }