build.gradle.kts 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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 = 34
  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. 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(platform(libs.bom))
  71. implementation(libs.postgrest.kt)
  72. implementation(libs.auth.kt)
  73. implementation(libs.realtime.kt)
  74. implementation(libs.ktor.client.android)
  75. implementation (libs.jetbrains.kotlinx.serialization.json)
  76. implementation(libs.coil.compose)
  77. implementation ("androidx.compose.runtime:runtime-livedata:1.5.0")
  78. implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.0")
  79. implementation("io.github.jan-tennert.supabase:storage-kt")
  80. }