build.gradle.kts 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. @Suppress("DSL_SCOPE_VIOLATION") // TODO: Remove once KTIJ-19369 is fixed
  2. plugins {
  3. alias(libs.plugins.android.library)
  4. alias(libs.plugins.org.jetbrains.kotlin.android)
  5. alias(libs.plugins.com.google.devtools.ksp)
  6. alias(libs.plugins.dagger.hilt)
  7. }
  8. android {
  9. namespace = "com.codeskraps.feature.common"
  10. compileSdk = ConfigData.compileSdk
  11. defaultConfig {
  12. minSdk = ConfigData.minSdk
  13. testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
  14. }
  15. buildTypes {
  16. release {
  17. isMinifyEnabled = false
  18. proguardFiles(
  19. getDefaultProguardFile("proguard-android-optimize.txt"),
  20. "proguard-rules.pro"
  21. )
  22. }
  23. }
  24. compileOptions {
  25. sourceCompatibility = ConfigData.javaVersion
  26. targetCompatibility = ConfigData.javaVersion
  27. }
  28. kotlinOptions {
  29. jvmTarget = ConfigData.javaTarget
  30. }
  31. buildFeatures {
  32. compose = true
  33. }
  34. composeOptions {
  35. kotlinCompilerExtensionVersion = ConfigData.kotlinCompiler
  36. }
  37. packaging {
  38. resources {
  39. excludes += "/META-INF/{AL2.0,LGPL2.1}"
  40. }
  41. }
  42. hilt {
  43. enableAggregatingTask = true
  44. }
  45. }
  46. dependencies {
  47. implementation(libs.androidx.core.ktx)
  48. implementation(libs.appcompat)
  49. implementation(libs.material)
  50. implementation(libs.androidx.activity.compose)
  51. //Dagger - Hilt
  52. implementation(libs.hilt.android)
  53. ksp(libs.hilt.android.compiler)
  54. testImplementation(libs.junit.junit)
  55. androidTestImplementation(libs.androidx.junit)
  56. androidTestImplementation(libs.espresso.core)
  57. implementation(libs.coroutines.test)
  58. }