build.gradle.kts 1.4 KB

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