build.gradle.kts 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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.core.local"
  10. compileSdk = ConfigData.compileSdk
  11. defaultConfig {
  12. minSdk = ConfigData.minSdk
  13. testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
  14. consumerProguardFiles("consumer-rules.pro")
  15. }
  16. buildTypes {
  17. release {
  18. isMinifyEnabled = false
  19. proguardFiles(
  20. getDefaultProguardFile("proguard-android-optimize.txt"),
  21. "proguard-rules.pro"
  22. )
  23. }
  24. }
  25. compileOptions {
  26. sourceCompatibility = ConfigData.javaVersion
  27. targetCompatibility = ConfigData.javaVersion
  28. }
  29. kotlinOptions {
  30. jvmTarget = ConfigData.javaTarget
  31. }
  32. }
  33. dependencies {
  34. implementation(project(mapOf("path" to ":feature:common")))
  35. implementation(libs.androidx.core.ktx)
  36. implementation(libs.appcompat)
  37. implementation(libs.material)
  38. //Dagger - Hilt
  39. implementation(libs.hilt.android)
  40. ksp(libs.hilt.android.compiler)
  41. // Room
  42. implementation(libs.room.runtime)
  43. annotationProcessor(libs.room.compiler)
  44. ksp(libs.room.compiler)
  45. testImplementation(libs.junit.junit)
  46. androidTestImplementation(libs.androidx.junit)
  47. androidTestImplementation(libs.espresso.core)
  48. }