build.gradle 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. plugins {
  2. id 'com.android.library'
  3. id 'org.jetbrains.kotlin.android'
  4. id 'maven-publish'
  5. id 'kotlin-parcelize'
  6. }
  7. ext {
  8. GROUP_ID = 'com.wenext.android'
  9. ARTIFACT_ID = 'frame-effect-preview'
  10. VERSION = '6.0.0'
  11. }
  12. if (project.FRAME_DEBUG != "true") {
  13. apply from: "../../publish.gradle"
  14. }
  15. android {
  16. namespace 'com.adealink.frame.effectpreview'
  17. compileSdk libs.versions.compileSdk.get().toInteger()
  18. defaultConfig {
  19. minSdk libs.versions.minSdk.get().toInteger()
  20. targetSdk libs.versions.targetSdk.get().toInteger()
  21. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  22. consumerProguardFiles "consumer-rules.pro"
  23. }
  24. buildTypes {
  25. release {
  26. minifyEnabled false
  27. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  28. }
  29. }
  30. compileOptions {
  31. sourceCompatibility JavaVersion.VERSION_17
  32. targetCompatibility JavaVersion.VERSION_17
  33. }
  34. kotlinOptions {
  35. jvmTarget = JavaVersion.VERSION_17.majorVersion
  36. }
  37. }
  38. dependencies {
  39. //androidx
  40. implementation libs.androidx.core.ktx
  41. implementation libs.androidx.appcompat
  42. implementation libs.androidx.constraint.layout
  43. implementation libs.androidx.recyclerview
  44. implementation libs.androidx.viewpager2
  45. implementation libs.androidx.activity
  46. implementation libs.android.material
  47. //frame
  48. compileOnly project(":frame:util")
  49. compileOnly project(":frame:base")
  50. compileOnly project(":frame:coroutine")
  51. compileOnly project(":frame:storage")
  52. compileOnly project(":frame:download")
  53. compileOnly project(":frame:effect")
  54. compileOnly project(":frame:mvvm")
  55. //test
  56. testImplementation libs.junit
  57. androidTestImplementation libs.androidx.junit
  58. androidTestImplementation libs.androidx.espresso.core
  59. }