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. id("dagger.hilt.android.plugin")
  7. }
  8. android {
  9. namespace = "com.example.weather"
  10. compileSdk = 34
  11. defaultConfig {
  12. applicationId = "com.arklan.weather"
  13. minSdk = 26
  14. targetSdk = 34
  15. versionCode = 4
  16. versionName = "1.3"
  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 = JavaVersion.VERSION_17
  33. targetCompatibility = JavaVersion.VERSION_17
  34. }
  35. kotlinOptions {
  36. jvmTarget = "17"
  37. }
  38. buildFeatures {
  39. compose = true
  40. }
  41. composeOptions {
  42. kotlinCompilerExtensionVersion = "1.5.3"
  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. implementation(platform("androidx.compose:compose-bom:2023.10.00"))
  64. implementation("androidx.compose.ui:ui")
  65. implementation("androidx.compose.ui:ui-graphics")
  66. implementation("androidx.compose.ui:ui-tooling-preview")
  67. implementation("androidx.compose.material3:material3")
  68. //Dagger - Hilt
  69. implementation(libs.hilt.android)
  70. implementation(libs.hilt.navigation.compose)
  71. ksp(libs.hilt.android.compiler)
  72. testImplementation(libs.junit.junit)
  73. androidTestImplementation(libs.androidx.junit)
  74. androidTestImplementation(libs.espresso.core)
  75. androidTestImplementation(platform("androidx.compose:compose-bom:2023.10.00"))
  76. androidTestImplementation("androidx.compose.ui:ui-test-junit4")
  77. debugImplementation("androidx.compose.ui:ui-tooling")
  78. debugImplementation("androidx.compose.ui:ui-test-manifest")
  79. implementation(libs.coroutines.test)
  80. }