build.gradle.kts 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. plugins {
  2. alias(libs.plugins.android.application)
  3. alias(libs.plugins.kotlin.android)
  4. kotlin("plugin.serialization") version "1.8.20"
  5. }
  6. android {
  7. namespace = "com.example.eatwell"
  8. compileSdk = 34
  9. defaultConfig {
  10. applicationId = "com.example.eatwell"
  11. minSdk = 24
  12. targetSdk = 34
  13. versionCode = 1
  14. versionName = "1.0"
  15. testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
  16. vectorDrawables {
  17. useSupportLibrary = true
  18. }
  19. }
  20. buildTypes {
  21. release {
  22. isMinifyEnabled = false
  23. proguardFiles(
  24. getDefaultProguardFile("proguard-android-optimize.txt"),
  25. "proguard-rules.pro"
  26. )
  27. }
  28. }
  29. // Настройка для компиляции Java с JDK 11
  30. compileOptions {
  31. sourceCompatibility = JavaVersion.VERSION_11
  32. targetCompatibility = JavaVersion.VERSION_11
  33. }
  34. // Настройка для компиляции Kotlin с JVM Target 11
  35. kotlinOptions {
  36. jvmTarget = "11"
  37. }
  38. buildFeatures {
  39. compose = true
  40. }
  41. composeOptions {
  42. kotlinCompilerExtensionVersion = "1.5.1"
  43. }
  44. packaging {
  45. resources {
  46. excludes += "/META-INF/{AL2.0,LGPL2.1}"
  47. }
  48. }
  49. }
  50. dependencies {
  51. implementation(libs.androidx.core.ktx)
  52. implementation(libs.androidx.lifecycle.runtime.ktx)
  53. implementation(libs.androidx.activity.compose)
  54. implementation(platform(libs.androidx.compose.bom))
  55. implementation(libs.androidx.ui)
  56. implementation(libs.androidx.ui.graphics)
  57. implementation(libs.androidx.ui.tooling.preview)
  58. implementation(libs.androidx.material3)
  59. implementation(libs.androidx.navigation.compose)
  60. implementation(libs.androidx.junit.ktx)
  61. testImplementation(libs.junit)
  62. androidTestImplementation(libs.androidx.junit)
  63. androidTestImplementation(libs.androidx.espresso.core)
  64. androidTestImplementation(platform(libs.androidx.compose.bom))
  65. androidTestImplementation(libs.androidx.ui.test.junit4)
  66. debugImplementation(libs.androidx.ui.tooling)
  67. debugImplementation(libs.androidx.ui.test.manifest)
  68. testImplementation ("junit:junit:4.13.2")
  69. testImplementation ("org.mockito:mockito-core:4.0.0")
  70. testImplementation ("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.6.0")
  71. testImplementation ("androidx.arch.core:core-testing:2.1.0")
  72. testImplementation ("org.mockito:mockito-inline:4.0.0")
  73. testImplementation("androidx.test:core:1.5.0")
  74. testImplementation("org.mockito.kotlin:mockito-kotlin:5.0.0")
  75. testImplementation("io.mockk:mockk:1.13.5")
  76. testImplementation ("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.9.0")
  77. implementation(platform("io.github.jan-tennert.supabase:bom:2.6.1"))
  78. implementation("io.github.jan-tennert.supabase:postgrest-kt")
  79. implementation("io.ktor:ktor-client-android:2.3.10")
  80. implementation("io.github.jan-tennert.supabase:storage-kt:2.6.1")
  81. implementation("io.coil-kt:coil-compose:2.2.0")
  82. implementation ("com.google.accompanist:accompanist-adaptive:0.30.1")
  83. }