build.gradle.kts 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. plugins {
  2. alias(libs.plugins.android.application)
  3. alias(libs.plugins.jetbrains.kotlin.android)
  4. kotlin("plugin.serialization") version "1.9.22"
  5. id("kotlin-kapt")
  6. id("com.google.dagger.hilt.android")
  7. alias(libs.plugins.compose.compiler)
  8. }
  9. android {
  10. namespace = "com.example.iplace"
  11. compileSdk = 34
  12. defaultConfig {
  13. applicationId = "com.example.iplace"
  14. minSdk = 24
  15. targetSdk = 34
  16. versionCode = 1
  17. versionName = "1.0"
  18. testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
  19. vectorDrawables {
  20. useSupportLibrary = true
  21. }
  22. }
  23. buildTypes {
  24. release {
  25. isMinifyEnabled = false
  26. proguardFiles(
  27. getDefaultProguardFile("proguard-android-optimize.txt"),
  28. "proguard-rules.pro"
  29. )
  30. }
  31. }
  32. compileOptions {
  33. sourceCompatibility = JavaVersion.VERSION_1_8
  34. targetCompatibility = JavaVersion.VERSION_1_8
  35. }
  36. kotlinOptions {
  37. jvmTarget = "1.8"
  38. }
  39. buildFeatures {
  40. compose = true
  41. }
  42. composeOptions {
  43. kotlinCompilerExtensionVersion = "1.5.1"
  44. }
  45. packaging {
  46. resources {
  47. excludes += "/META-INF/{AL2.0,LGPL2.1}"
  48. }
  49. }
  50. }
  51. dependencies {
  52. implementation(libs.androidx.core.ktx)
  53. implementation(libs.androidx.lifecycle.runtime.ktx)
  54. implementation(libs.androidx.activity.compose)
  55. implementation(platform(libs.androidx.compose.bom))
  56. implementation(libs.androidx.ui)
  57. implementation(libs.androidx.ui.graphics)
  58. implementation(libs.androidx.ui.tooling.preview)
  59. implementation(libs.androidx.material3)
  60. implementation(libs.play.services.auth)
  61. implementation(libs.androidx.navigation.compose)
  62. implementation(libs.volley)
  63. implementation(libs.androidx.navigation.runtime.ktx)
  64. testImplementation(libs.junit)
  65. androidTestImplementation(libs.androidx.junit)
  66. androidTestImplementation(libs.androidx.espresso.core)
  67. androidTestImplementation(platform(libs.androidx.compose.bom))
  68. androidTestImplementation(libs.androidx.ui.test.junit4)
  69. debugImplementation(libs.androidx.ui.tooling)
  70. debugImplementation(libs.androidx.ui.test.manifest)
  71. implementation(libs.github.postgrest.kt)
  72. implementation(platform(libs.bom.v261))
  73. implementation(libs.ktor.client.android)
  74. implementation(libs.github.gotrue.kt)
  75. implementation(libs.github.realtime.kt)
  76. implementation(libs.storage.kt)
  77. implementation(libs.ktor.client.android)
  78. implementation(libs.kotlinx.serialization.json)
  79. implementation(libs.hilt.android)
  80. kapt(libs.hilt.android.compiler)
  81. implementation(libs.coil.compose) // Или последняя версия
  82. implementation(libs.ui.tooling.preview)
  83. testImplementation ("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.9.0")
  84. testImplementation("org.mockito:mockito-core:4.11.0") // или нужная вам версия
  85. androidTestImplementation("org.mockito:mockito-android:4.11.0") // если нужен Mockito для Android
  86. }