build.gradle.kts 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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.geocoding"
  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:local")))
  52. implementation(libs.androidx.core.ktx)
  53. implementation(libs.androidx.lifecycle.runtime.ktx)
  54. implementation(libs.androidx.activity.compose)
  55. implementation(libs.androidx.navigation.compose)
  56. implementation(libs.androidx.lifecycle.runtime.compose)
  57. implementation(libs.android.compose.material3)
  58. val composeBom = platform(libs.androidx.compose.bom)
  59. implementation(composeBom)
  60. implementation(libs.androidx.compose.ui)
  61. implementation(libs.androidx.compose.graphics)
  62. implementation(libs.androidx.compose.tooling.preview)
  63. //Dagger - Hilt
  64. implementation(libs.hilt.android)
  65. ksp(libs.hilt.android.compiler)
  66. // Retrofit
  67. implementation(libs.retrofit.retrofit)
  68. implementation(libs.retrofit.converter.moshi)
  69. testImplementation(libs.junit.junit)
  70. androidTestImplementation(libs.androidx.junit)
  71. androidTestImplementation(libs.espresso.core)
  72. }