build.gradle.kts 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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.codeskraps.weather"
  10. compileSdk = ConfigData.compileSdk
  11. defaultConfig {
  12. applicationId = "com.arklan.weather"
  13. minSdk = ConfigData.minSdk
  14. targetSdk = ConfigData.targetSdk
  15. versionCode = 12
  16. versionName = "2.2"
  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(project(mapOf("path" to ":feature:maps")))
  58. implementation(libs.androidx.core.ktx)
  59. implementation(libs.androidx.lifecycle.runtime.ktx)
  60. implementation(libs.androidx.activity.compose)
  61. implementation(libs.androidx.navigation.compose)
  62. implementation(libs.androidx.lifecycle.runtime.compose)
  63. implementation(libs.android.compose.material3)
  64. val composeBom = platform(libs.androidx.compose.bom)
  65. implementation(composeBom)
  66. implementation(libs.androidx.compose.ui)
  67. implementation(libs.androidx.compose.graphics)
  68. implementation(libs.androidx.compose.tooling.preview)
  69. //Dagger - Hilt
  70. implementation(libs.hilt.android)
  71. implementation(libs.hilt.navigation.compose)
  72. ksp(libs.hilt.android.compiler)
  73. implementation(libs.coroutines.test)
  74. testImplementation(libs.junit.junit)
  75. androidTestImplementation(composeBom)
  76. androidTestImplementation(libs.androidx.junit)
  77. androidTestImplementation(libs.espresso.core)
  78. androidTestImplementation(libs.androidx.compose.test.junit4)
  79. debugImplementation(libs.androidx.compose.tooling)
  80. debugImplementation(libs.androidx.compose.test.manifest)
  81. }