build.gradle.kts 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. import com.codeskraps.weather.ConfigData
  2. @Suppress("DSL_SCOPE_VIOLATION") // TODO: Remove once KTIJ-19369 is fixed
  3. plugins {
  4. alias(libs.plugins.android.library)
  5. alias(libs.plugins.org.jetbrains.kotlin.android)
  6. alias(libs.plugins.com.google.devtools.ksp)
  7. alias(libs.plugins.dagger.hilt)
  8. }
  9. android {
  10. namespace = "com.codeskraps.core.local"
  11. compileSdk = ConfigData.compileSdk
  12. defaultConfig {
  13. minSdk = ConfigData.minSdk
  14. testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
  15. consumerProguardFiles("consumer-rules.pro")
  16. }
  17. buildTypes {
  18. release {
  19. isMinifyEnabled = ConfigData.isMinifyRelease
  20. proguardFiles(
  21. getDefaultProguardFile("proguard-android-optimize.txt"),
  22. "proguard-rules.pro"
  23. )
  24. }
  25. debug {
  26. isMinifyEnabled = ConfigData.isMinifyDebug
  27. }
  28. }
  29. compileOptions {
  30. sourceCompatibility = ConfigData.javaVersion
  31. targetCompatibility = ConfigData.javaVersion
  32. }
  33. kotlinOptions {
  34. jvmTarget = ConfigData.javaTarget
  35. }
  36. }
  37. dependencies {
  38. implementation(project(mapOf("path" to ":feature:common")))
  39. implementation(libs.androidx.core.ktx)
  40. implementation(libs.appcompat)
  41. implementation(libs.material)
  42. //Dagger - Hilt
  43. implementation(libs.hilt.android)
  44. ksp(libs.hilt.android.compiler)
  45. // Room
  46. implementation(libs.room.runtime)
  47. annotationProcessor(libs.room.compiler)
  48. ksp(libs.room.compiler)
  49. testImplementation(libs.junit.junit)
  50. androidTestImplementation(libs.androidx.junit)
  51. androidTestImplementation(libs.espresso.core)
  52. }