build.gradle.kts 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. plugins {
  2. alias(libs.plugins.android.application)
  3. alias(libs.plugins.jetbrains.kotlin.android)
  4. //id ("org.jetbrains.kotlin.plugin.serialization")
  5. kotlin("plugin.serialization") version "1.9.22"
  6. alias(libs.plugins.compose.compiler)
  7. }
  8. android {
  9. namespace = "com.example.uniqwearappproj"
  10. compileSdk = 34
  11. defaultConfig {
  12. applicationId = "com.example.uniqwearappproj"
  13. minSdk = 30
  14. targetSdk = 34
  15. versionCode = 1
  16. versionName = "1.0"
  17. testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
  18. vectorDrawables {
  19. useSupportLibrary = true
  20. }
  21. }
  22. buildTypes {
  23. release {
  24. isMinifyEnabled = false
  25. proguardFiles(
  26. getDefaultProguardFile("proguard-android-optimize.txt"),
  27. "proguard-rules.pro"
  28. )
  29. }
  30. }
  31. compileOptions {
  32. sourceCompatibility = JavaVersion.VERSION_1_8
  33. targetCompatibility = JavaVersion.VERSION_1_8
  34. }
  35. kotlinOptions {
  36. jvmTarget = "1.8"
  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.runtime.ktx)
  60. implementation(libs.androidx.navigation.compose)
  61. implementation(libs.firebase.firestore.ktx)
  62. implementation(libs.firebase.crashlytics.buildtools)
  63. implementation(libs.androidx.core.i18n)
  64. //implementation(libs.androidx.ui.test.junit4.android)
  65. //implementation(libs.androidx.core.i18n)
  66. testImplementation(libs.junit)
  67. androidTestImplementation(libs.androidx.junit)
  68. androidTestImplementation(libs.androidx.espresso.core)
  69. androidTestImplementation(platform(libs.androidx.compose.bom))
  70. androidTestImplementation(libs.androidx.ui.test.junit4)
  71. debugImplementation(libs.androidx.ui.tooling)
  72. debugImplementation(libs.androidx.ui.test.manifest)
  73. implementation(platform(libs.bom))
  74. implementation(libs.postgrest.kt)
  75. implementation(libs.auth.kt)
  76. implementation(libs.realtime.kt)
  77. implementation(libs.ktor.client.android)
  78. implementation(libs.jetbrains.kotlinx.serialization.json)
  79. implementation(libs.coil.compose)
  80. implementation("io.github.jan-tennert.supabase:gotrue-kt:2.6.1")
  81. implementation("androidx.compose.runtime:runtime-livedata:1.5.0")
  82. implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.0")
  83. implementation("io.github.jan-tennert.supabase:storage-kt")
  84. testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.9.0")
  85. testImplementation("org.slf4j:slf4j-simple:2.0.9")
  86. testImplementation("androidx.arch.core:core-testing:2.1.0")
  87. testImplementation("io.mockk:mockk:1.13.3")
  88. }