build.gradle.kts 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  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. testImplementation(libs.junit)
  64. androidTestImplementation(libs.androidx.junit)
  65. androidTestImplementation(libs.androidx.espresso.core)
  66. androidTestImplementation(platform(libs.androidx.compose.bom))
  67. androidTestImplementation(libs.androidx.ui.test.junit4)
  68. debugImplementation(libs.androidx.ui.tooling)
  69. debugImplementation(libs.androidx.ui.test.manifest)
  70. implementation(libs.github.postgrest.kt)
  71. implementation(platform(libs.bom.v261))
  72. implementation(libs.ktor.client.android)
  73. implementation(libs.github.gotrue.kt)
  74. implementation(libs.github.realtime.kt)
  75. implementation(libs.storage.kt)
  76. implementation(libs.ktor.client.android)
  77. implementation(libs.kotlinx.serialization.json)
  78. implementation(libs.hilt.android)
  79. kapt(libs.hilt.android.compiler)
  80. implementation(libs.coil.compose) // Или последняя версия
  81. implementation(libs.ui.tooling.preview)
  82. }