build.gradle.kts 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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.weather"
  10. compileSdk = ConfigData.compileSdk
  11. defaultConfig {
  12. minSdk = ConfigData.minSdk
  13. testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
  14. vectorDrawables {
  15. useSupportLibrary = true
  16. }
  17. }
  18. buildTypes {
  19. release {
  20. isMinifyEnabled = false
  21. proguardFiles(
  22. getDefaultProguardFile("proguard-android-optimize.txt"),
  23. "proguard-rules.pro"
  24. )
  25. }
  26. }
  27. compileOptions {
  28. sourceCompatibility = ConfigData.javaVersion
  29. targetCompatibility = ConfigData.javaVersion
  30. }
  31. kotlinOptions {
  32. jvmTarget = ConfigData.javaTarget
  33. }
  34. buildFeatures {
  35. compose = true
  36. }
  37. composeOptions {
  38. kotlinCompilerExtensionVersion = ConfigData.kotlinCompiler
  39. }
  40. packaging {
  41. resources {
  42. excludes += "/META-INF/{AL2.0,LGPL2.1}"
  43. }
  44. }
  45. hilt {
  46. enableAggregatingTask = true
  47. }
  48. }
  49. dependencies {
  50. implementation(project(mapOf("path" to ":feature:common")))
  51. implementation(project(mapOf("path" to ":core:location")))
  52. implementation(project(mapOf("path" to ":core:local")))
  53. implementation(libs.androidx.core.ktx)
  54. implementation(libs.androidx.lifecycle.runtime.ktx)
  55. implementation(libs.androidx.activity.compose)
  56. implementation(libs.androidx.navigation.compose)
  57. implementation(libs.androidx.lifecycle.runtime.compose)
  58. implementation(libs.android.compose.material)
  59. implementation(libs.android.compose.material3)
  60. implementation(libs.androidx.animation.graphics.android)
  61. val composeBom = platform(libs.androidx.compose.bom)
  62. implementation(composeBom)
  63. implementation(libs.androidx.compose.ui)
  64. implementation(libs.androidx.compose.graphics)
  65. implementation(libs.androidx.compose.tooling.preview)
  66. implementation(libs.kotlinx.collections.immutable)
  67. //Dagger - Hilt
  68. implementation(libs.hilt.android)
  69. ksp(libs.hilt.android.compiler)
  70. // Retrofit
  71. implementation(libs.retrofit.retrofit)
  72. implementation(libs.retrofit.converter.moshi)
  73. implementation(libs.coroutines.test)
  74. testImplementation(libs.junit.junit)
  75. androidTestImplementation(libs.androidx.junit)
  76. androidTestImplementation(libs.espresso.core)
  77. androidTestImplementation(composeBom)
  78. androidTestImplementation(libs.androidx.compose.test.junit4)
  79. debugImplementation(libs.androidx.compose.tooling)
  80. debugImplementation(libs.androidx.compose.test.manifest)
  81. }