build.gradle.kts 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. plugins {
  2. alias(libs.plugins.android.application)
  3. alias(libs.plugins.kotlin.android)
  4. kotlin("plugin.serialization") version "2.0.20"
  5. id("kotlin-kapt")
  6. id("com.google.dagger.hilt.android")
  7. }
  8. android {
  9. namespace = "com.example.collectionofshortstories"
  10. compileSdk = 34
  11. defaultConfig {
  12. applicationId = "com.example.collectionofshortstories"
  13. minSdk = 24
  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.work.runtime.ktx)
  61. implementation(libs.androidx.navigation.compose)
  62. testImplementation(libs.junit)
  63. androidTestImplementation(libs.androidx.junit)
  64. androidTestImplementation(libs.androidx.espresso.core)
  65. androidTestImplementation(platform(libs.androidx.compose.bom))
  66. androidTestImplementation(libs.androidx.ui.test.junit4)
  67. debugImplementation(libs.androidx.ui.tooling)
  68. debugImplementation(libs.androidx.ui.test.manifest)
  69. implementation(platform(libs.bom))
  70. implementation(libs.supabase.postgrest.kt)
  71. implementation(libs.supabase.gotrue.kt)
  72. implementation(libs.supabase.realtime.kt)
  73. implementation(libs.storage.kt)
  74. implementation(libs.ktor.client.android)
  75. // implementation("com.google.dagger:hilt-android:2.52")
  76. // kapt("com.google.dagger:hilt-compiler:2.52")
  77. // implementation("androidx.hilt:hilt-navigation-compose:1.2.0")
  78. implementation(libs.hilt.android)
  79. kapt(libs.hilt.compiler)
  80. implementation(libs.androidx.hilt.navigation.compose)
  81. // implementation("io.coil-kt:coil-compose:2.4.0")
  82. implementation(libs.coil.compose)
  83. }