build.gradle.kts 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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.feature.geocoding"
  11. compileSdk = ConfigData.compileSdk
  12. defaultConfig {
  13. minSdk = ConfigData.minSdk
  14. testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
  15. vectorDrawables {
  16. useSupportLibrary = true
  17. }
  18. }
  19. buildTypes {
  20. release {
  21. isMinifyEnabled = ConfigData.isMinifyRelease
  22. proguardFiles(
  23. getDefaultProguardFile("proguard-android-optimize.txt"),
  24. "proguard-rules.pro"
  25. )
  26. }
  27. debug {
  28. isMinifyEnabled = ConfigData.isMinifyDebug
  29. }
  30. }
  31. compileOptions {
  32. sourceCompatibility = ConfigData.javaVersion
  33. targetCompatibility = ConfigData.javaVersion
  34. }
  35. kotlinOptions {
  36. jvmTarget = ConfigData.javaTarget
  37. }
  38. buildFeatures {
  39. compose = true
  40. }
  41. composeOptions {
  42. kotlinCompilerExtensionVersion = ConfigData.kotlinCompiler
  43. }
  44. packaging {
  45. resources {
  46. excludes += "/META-INF/{AL2.0,LGPL2.1}"
  47. }
  48. }
  49. hilt {
  50. enableAggregatingTask = true
  51. }
  52. }
  53. dependencies {
  54. implementation(project(mapOf("path" to ":feature:common")))
  55. implementation(project(mapOf("path" to ":core:local")))
  56. implementation(libs.androidx.core.ktx)
  57. implementation(libs.androidx.lifecycle.runtime.ktx)
  58. implementation(libs.androidx.activity.compose)
  59. implementation(libs.androidx.navigation.compose)
  60. implementation(libs.androidx.lifecycle.runtime.compose)
  61. implementation(libs.android.compose.material3)
  62. val composeBom = platform(libs.androidx.compose.bom)
  63. implementation(composeBom)
  64. implementation(libs.androidx.compose.ui)
  65. implementation(libs.androidx.compose.graphics)
  66. implementation(libs.androidx.compose.tooling.preview)
  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. testImplementation(libs.junit.junit)
  74. androidTestImplementation(libs.androidx.junit)
  75. androidTestImplementation(libs.espresso.core)
  76. }