build.gradle.kts 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. @Suppress("DSL_SCOPE_VIOLATION") // TODO: Remove once KTIJ-19369 is fixed
  2. plugins {
  3. alias(libs.plugins.android.application)
  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.example.weather"
  10. compileSdk = ConfigData.compileSdk
  11. defaultConfig {
  12. applicationId = "com.arklan.weather"
  13. minSdk = ConfigData.minSdk
  14. targetSdk = ConfigData.targetSdk
  15. versionCode = 5
  16. versionName = "1.4"
  17. testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
  18. vectorDrawables {
  19. useSupportLibrary = true
  20. }
  21. }
  22. buildTypes {
  23. release {
  24. isMinifyEnabled = false
  25. proguardFiles(
  26. getDefaultProguardFile("proguard-android-optimize.txt"),
  27. "proguard-rules.pro"
  28. )
  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 ":feature:geocoding")))
  56. implementation(project(mapOf("path" to ":feature:weather")))
  57. implementation(libs.androidx.core.ktx)
  58. implementation(libs.androidx.lifecycle.runtime.ktx)
  59. implementation(libs.androidx.activity.compose)
  60. implementation(libs.androidx.navigation.compose)
  61. implementation(libs.androidx.lifecycle.runtime.compose)
  62. implementation(libs.android.compose.material3)
  63. val composeBom = platform(libs.androidx.compose.bom)
  64. implementation(composeBom)
  65. implementation(libs.androidx.compose.ui)
  66. implementation(libs.androidx.compose.graphics)
  67. implementation(libs.androidx.compose.tooling.preview)
  68. //Dagger - Hilt
  69. implementation(libs.hilt.android)
  70. implementation(libs.hilt.navigation.compose)
  71. ksp(libs.hilt.android.compiler)
  72. implementation(libs.coroutines.test)
  73. testImplementation(libs.junit.junit)
  74. androidTestImplementation(composeBom)
  75. androidTestImplementation(libs.androidx.junit)
  76. androidTestImplementation(libs.espresso.core)
  77. androidTestImplementation(libs.androidx.compose.test.junit4)
  78. debugImplementation(libs.androidx.compose.tooling)
  79. debugImplementation(libs.androidx.compose.test.manifest)
  80. }