build.gradle.kts 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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.core.location"
  11. compileSdk = ConfigData.compileSdk
  12. defaultConfig {
  13. minSdk = ConfigData.minSdk
  14. testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
  15. consumerProguardFiles("consumer-rules.pro")
  16. }
  17. buildTypes {
  18. release {
  19. isMinifyEnabled = ConfigData.isMinifyRelease
  20. proguardFiles(
  21. getDefaultProguardFile("proguard-android-optimize.txt"),
  22. "proguard-rules.pro"
  23. )
  24. }
  25. debug {
  26. isMinifyEnabled = ConfigData.isMinifyDebug
  27. }
  28. }
  29. compileOptions {
  30. sourceCompatibility = ConfigData.javaVersion
  31. targetCompatibility = ConfigData.javaVersion
  32. }
  33. kotlinOptions {
  34. jvmTarget = ConfigData.javaTarget
  35. }
  36. }
  37. dependencies {
  38. implementation(libs.androidx.core.ktx)
  39. implementation(libs.appcompat)
  40. implementation(libs.material)
  41. // Location Services
  42. implementation(libs.android.play.services.location)
  43. //Dagger - Hilt
  44. implementation(libs.hilt.android)
  45. ksp(libs.hilt.android.compiler)
  46. testImplementation(libs.junit.junit)
  47. androidTestImplementation(libs.androidx.junit)
  48. androidTestImplementation(libs.espresso.core)
  49. }