build.gradle.kts 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. plugins {
  2. alias(libs.plugins.android.application)
  3. alias(libs.plugins.jetbrains.kotlin.android)
  4. kotlin("plugin.serialization") version "1.9.22"
  5. }
  6. android {
  7. namespace = "com.example.projectonsupabase"
  8. compileSdk = 34
  9. defaultConfig {
  10. applicationId = "com.example.projectonsupabase"
  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. compileOptions {
  30. sourceCompatibility = JavaVersion.VERSION_1_8
  31. targetCompatibility = JavaVersion.VERSION_1_8
  32. }
  33. kotlinOptions {
  34. jvmTarget = "1.8"
  35. }
  36. buildFeatures {
  37. compose = true
  38. }
  39. composeOptions {
  40. kotlinCompilerExtensionVersion = "1.5.1"
  41. }
  42. packaging {
  43. resources {
  44. excludes += "/META-INF/{AL2.0,LGPL2.1}"
  45. }
  46. }
  47. }
  48. dependencies {
  49. implementation(libs.androidx.core.ktx)
  50. implementation(libs.androidx.lifecycle.runtime.ktx)
  51. implementation (libs.androidx.lifecycle.viewmodel.compose)
  52. implementation(libs.androidx.activity.compose)
  53. implementation(platform(libs.androidx.compose.bom))
  54. implementation(libs.androidx.ui)
  55. implementation(libs.androidx.ui.graphics)
  56. implementation(libs.androidx.ui.tooling.preview)
  57. implementation(libs.androidx.material3)
  58. implementation (libs.volley)
  59. implementation(libs.androidx.espresso.core)
  60. // implementation(libs.androidx.runtime.android)
  61. testImplementation(libs.junit)
  62. androidTestImplementation(libs.androidx.junit)
  63. androidTestImplementation(libs.androidx.ui.test.junit4)
  64. debugImplementation(libs.androidx.ui.tooling)
  65. debugImplementation(libs.androidx.ui.test.manifest)
  66. implementation(libs.bom)
  67. implementation(libs.postgrest.kt)
  68. implementation(libs.gotrue.kt)
  69. implementation(libs.realtime.kt)
  70. implementation(libs.storage.kt)
  71. //noinspection UseTomlInstead
  72. implementation("io.ktor:ktor-client-android:2.3.12")
  73. // implementation(platform(libs.androidx.compose.bom))
  74. implementation(libs.ktor.client.android)
  75. implementation (libs.ktor.client.core)
  76. implementation (libs.ktor.client.content.negotiation)
  77. implementation (libs.ktor.serialization.kotlinx.json)
  78. implementation (libs.ktor.client.serialization)
  79. implementation (libs.ktor.client.logging)
  80. //noinspection UseTomlInstead
  81. implementation ("org.jetbrains.kotlinx:kotlinx-coroutines-core:2.3.12")
  82. implementation (libs.kotlinx.coroutines.core)
  83. implementation (libs.ui)
  84. implementation (libs.material3)
  85. implementation (libs.ui.tooling.preview)
  86. implementation (libs.androidx.navigation.compose)
  87. }