build.gradle.kts 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. plugins {
  2. alias(libs.plugins.android.application)
  3. alias(libs.plugins.jetbrains.kotlin.android)
  4. alias(libs.plugins.compose.compiler)
  5. kotlin("plugin.serialization")
  6. }
  7. android {
  8. namespace = "com.example.greentown"
  9. compileSdk = 35
  10. defaultConfig {
  11. applicationId = "com.example.greentown"
  12. minSdk = 24
  13. targetSdk = 34
  14. versionCode = 1
  15. versionName = "1.0"
  16. testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
  17. vectorDrawables {
  18. useSupportLibrary = true
  19. }
  20. }
  21. buildTypes {
  22. release {
  23. isMinifyEnabled = false
  24. proguardFiles(
  25. getDefaultProguardFile("proguard-android-optimize.txt"),
  26. "proguard-rules.pro"
  27. )
  28. }
  29. }
  30. compileOptions {
  31. sourceCompatibility = JavaVersion.VERSION_1_8
  32. targetCompatibility = JavaVersion.VERSION_1_8
  33. }
  34. kotlinOptions {
  35. jvmTarget = "1.8"
  36. }
  37. buildFeatures {
  38. compose = true
  39. }
  40. composeOptions {
  41. kotlinCompilerExtensionVersion = "1.5.1"
  42. }
  43. packaging {
  44. resources {
  45. excludes += "/META-INF/{AL2.0,LGPL2.1}"
  46. }
  47. }
  48. }
  49. dependencies {
  50. // Navigation
  51. implementation(libs.androidx.navigation.compose)
  52. // Network Image
  53. implementation(libs.coil.compose)
  54. // Supabase
  55. implementation(platform(libs.supabase.bom))
  56. implementation(libs.realtime.kt)
  57. implementation(libs.postgrest.kt)
  58. implementation(libs.ktor.client.android)
  59. implementation(libs.kotlinx.serialization.json)
  60. implementation(libs.androidx.core.ktx)
  61. implementation(libs.androidx.lifecycle.runtime.ktx)
  62. implementation(libs.androidx.activity.compose)
  63. implementation(platform(libs.androidx.compose.bom))
  64. implementation(libs.androidx.ui)
  65. implementation(libs.androidx.ui.graphics)
  66. implementation(libs.androidx.ui.tooling.preview)
  67. implementation(libs.androidx.material3)
  68. implementation(libs.androidx.navigation.compose)
  69. implementation(libs.androidx.appcompat)
  70. implementation(libs.play.services.analytics.impl)
  71. testImplementation(libs.junit)
  72. androidTestImplementation(libs.androidx.junit)
  73. androidTestImplementation(libs.androidx.espresso.core)
  74. androidTestImplementation(platform(libs.androidx.compose.bom))
  75. androidTestImplementation(libs.androidx.ui.test.junit4)
  76. debugImplementation(libs.androidx.ui.tooling)
  77. debugImplementation(libs.androidx.ui.test.manifest)
  78. implementation("androidx.core:core-splashscreen:1.0.1")
  79. implementation ("com.journeyapps:zxing-android-embedded:4.3.0")
  80. implementation ("org.jsoup:jsoup:1.15.3")
  81. implementation ("com.google.zxing:core:3.3.3")
  82. implementation("com.google.mlkit:barcode-scanning:17.0.2")
  83. implementation("androidx.camera:camera-camera2:1.1.0")
  84. implementation("androidx.camera:camera-lifecycle:1.1.0")
  85. implementation("androidx.camera:camera-view:1.0.0-alpha31")
  86. implementation("androidx.camera:camera-extensions:1.0.0-alpha31")
  87. }