build.gradle.kts 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. plugins {
  2. alias(libs.plugins.android.application)
  3. alias(libs.plugins.kotlin.android)
  4. alias(libs.plugins.compose.compiler)
  5. kotlin("plugin.serialization") version "2.0.20"
  6. }
  7. android {
  8. namespace = "com.example.giftshopsunmulapp"
  9. compileSdk = 35 /*agp = "8.6.1"*/
  10. //compileSdk = 34 /*agp = "8.5.1"*/
  11. defaultConfig {
  12. applicationId = "com.example.giftshopsunmulapp"
  13. minSdk = 29
  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. //noinspection UseTomlInstead
  52. implementation(platform("io.github.jan-tennert.supabase:bom:3.0.2"))
  53. implementation("io.github.jan-tennert.supabase:postgrest-kt:3.0.2")
  54. implementation("io.ktor:ktor-client-android:3.0.1")
  55. implementation("io.github.jan-tennert.supabase:auth-kt:3.0.2")
  56. implementation("io.github.jan-tennert.supabase:realtime-kt:3.0.2")
  57. implementation("io.github.jan-tennert.supabase:storage-kt:3.0.2")
  58. implementation("io.coil-kt:coil-compose:2.7.0")
  59. implementation("androidx.navigation:navigation-compose:2.8.4")
  60. implementation("androidx.core:core-splashscreen:1.2.0-alpha02")
  61. implementation("androidx.compose.ui:ui-text-google-fonts:1.7.5")
  62. implementation("androidx.compose.material:material:1.7.5")
  63. implementation("androidx.compose.material3:material3:1.3.1")
  64. implementation("org.slf4j:slf4j-simple:2.0.9")
  65. implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.7.3")
  66. testImplementation ("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.9.0")
  67. implementation(libs.androidx.core.ktx)
  68. implementation(libs.androidx.lifecycle.runtime.ktx)
  69. implementation(libs.androidx.activity.compose)
  70. implementation(platform(libs.androidx.compose.bom))
  71. implementation(libs.androidx.ui)
  72. implementation(libs.androidx.ui.graphics)
  73. implementation(libs.androidx.ui.tooling.preview)
  74. implementation(libs.androidx.material3)
  75. implementation(libs.play.services.auth)
  76. implementation(libs.androidx.datastore.core.android)
  77. implementation(libs.androidx.ui.text.google.fonts)
  78. implementation(libs.androidx.foundation.layout.android)
  79. implementation(libs.androidx.foundation.layout.android)
  80. implementation(libs.androidx.foundation.layout.android)
  81. implementation(libs.androidx.foundation.layout.android)
  82. implementation(libs.androidx.foundation.android)
  83. implementation(libs.androidx.foundation.layout.android)
  84. testImplementation(libs.junit)
  85. androidTestImplementation(libs.androidx.junit)
  86. androidTestImplementation(libs.androidx.espresso.core)
  87. androidTestImplementation(platform(libs.androidx.compose.bom))
  88. androidTestImplementation(libs.androidx.ui.test.junit4)
  89. debugImplementation(libs.androidx.ui.tooling)
  90. debugImplementation(libs.androidx.ui.test.manifest)
  91. }