build.gradle.kts 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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. alias(libs.plugins.secrets.gradle.plugin)
  8. }
  9. android {
  10. namespace = "com.codeskraps.maps"
  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 = false
  20. proguardFiles(
  21. getDefaultProguardFile("proguard-android-optimize.txt"),
  22. "proguard-rules.pro"
  23. )
  24. }
  25. }
  26. compileOptions {
  27. sourceCompatibility = ConfigData.javaVersion
  28. targetCompatibility = ConfigData.javaVersion
  29. }
  30. kotlinOptions {
  31. jvmTarget = ConfigData.javaTarget
  32. }
  33. buildFeatures {
  34. compose = true
  35. buildConfig = true
  36. }
  37. composeOptions {
  38. kotlinCompilerExtensionVersion = ConfigData.kotlinCompiler
  39. }
  40. }
  41. secrets {
  42. // Optionally specify a different file name containing your secrets.
  43. // The plugin defaults to "local.properties"
  44. propertiesFileName = "secrets.properties"
  45. // A properties file containing default secret values. This file can be
  46. // checked in version control.
  47. defaultPropertiesFileName = "local.defaults.properties"
  48. // Configure which keys should be ignored by the plugin by providing regular expressions.
  49. // "sdk.dir" is ignored by default.
  50. ignoreList.add("keyToIgnore") // Ignore the key "keyToIgnore"
  51. ignoreList.add("sdk.*") // Ignore all keys matching the regexp "sdk.*"
  52. }
  53. dependencies {
  54. implementation(project(mapOf("path" to ":feature:common")))
  55. implementation(project(mapOf("path" to ":core:location")))
  56. implementation(project(mapOf("path" to ":core:local")))
  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. ksp(libs.hilt.android.compiler)
  71. implementation(libs.play.services.maps)
  72. implementation(libs.maps.compose)
  73. testImplementation(libs.junit.junit)
  74. androidTestImplementation(libs.androidx.junit)
  75. androidTestImplementation(libs.espresso.core)
  76. }