build.gradle.kts 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. plugins {
  2. alias(libs.plugins.android.application)
  3. alias(libs.plugins.kotlin.android)
  4. kotlin("plugin.serialization") version "1.9.22"
  5. }
  6. android {
  7. namespace = "com.example.lectionsupabase"
  8. compileSdk = 34
  9. defaultConfig {
  10. applicationId = "com.example.lectionsupabase"
  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("androidx.compose.ui:ui:1.4.0")
  50. implementation("androidx.compose.ui:ui-tooling-preview:1.4.0")
  51. implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.6.0")
  52. implementation("androidx.activity:activity-compose:1.6.0")
  53. implementation("androidx.compose.material3:material3:1.0.0") //
  54. implementation(libs.androidx.core.ktx)
  55. implementation(libs.androidx.lifecycle.runtime.ktx)
  56. implementation(libs.androidx.activity.compose)
  57. implementation(platform(libs.androidx.compose.bom))
  58. implementation(libs.androidx.ui)
  59. implementation(libs.androidx.ui.graphics)
  60. implementation(libs.androidx.ui.tooling.preview)
  61. implementation(libs.androidx.material3)
  62. implementation(libs.volley)
  63. implementation(libs.androidx.espresso.core)
  64. implementation(libs.androidx.navigation.compose)
  65. implementation(libs.androidx.runtime.livedata)
  66. implementation(libs.androidx.tools.core)
  67. implementation(libs.androidx.runtime.saved.instance.state)
  68. testImplementation(libs.junit)
  69. androidTestImplementation(libs.androidx.junit)
  70. androidTestImplementation(libs.androidx.espresso.core)
  71. androidTestImplementation(platform(libs.androidx.compose.bom))
  72. androidTestImplementation(libs.androidx.ui.test.junit4)
  73. debugImplementation(libs.androidx.ui.tooling)
  74. debugImplementation(libs.androidx.ui.test.manifest)
  75. implementation("androidx.compose.material:material:1.7.5")
  76. implementation("androidx.navigation:navigation-compose:2.8.4")
  77. implementation("androidx.compose.ui:ui:1.0.0")
  78. implementation("androidx.compose.ui:ui-tooling:1.7.5")
  79. implementation(platform(libs.bom))
  80. implementation(libs.supabase.postgrest.kt)
  81. implementation(libs.ktor.client.android)
  82. implementation (libs.supabase.realtime.kt)
  83. implementation(libs.storage.kt)
  84. implementation(libs.coil.compose)
  85. implementation(libs.storage.kt.v261)
  86. }