build.gradle.kts 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. plugins {
  2. id("com.android.application")
  3. id("org.jetbrains.kotlin.android")
  4. id("com.google.devtools.ksp")
  5. }
  6. android {
  7. namespace = "com.tixing.app"
  8. compileSdk = 35
  9. defaultConfig {
  10. applicationId = "com.tixing.app"
  11. minSdk = 24
  12. targetSdk = 35
  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_17
  31. targetCompatibility = JavaVersion.VERSION_17
  32. isCoreLibraryDesugaringEnabled = true
  33. }
  34. kotlinOptions {
  35. jvmTarget = "17"
  36. }
  37. buildFeatures {
  38. compose = true
  39. }
  40. composeOptions {
  41. kotlinCompilerExtensionVersion = "1.5.14"
  42. }
  43. packaging {
  44. resources {
  45. excludes += "/META-INF/{AL2.0,LGPL2.1}"
  46. }
  47. }
  48. }
  49. dependencies {
  50. val composeBom = platform("androidx.compose:compose-bom:2024.06.00")
  51. implementation(composeBom)
  52. androidTestImplementation(composeBom)
  53. implementation("androidx.core:core-ktx:1.13.1")
  54. implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.8.4")
  55. implementation("androidx.lifecycle:lifecycle-runtime-compose:2.8.4")
  56. implementation("androidx.activity:activity-compose:1.9.1")
  57. implementation("androidx.lifecycle:lifecycle-viewmodel-compose:2.8.4")
  58. implementation("androidx.compose.ui:ui")
  59. implementation("androidx.compose.ui:ui-tooling-preview")
  60. implementation("androidx.compose.material3:material3")
  61. implementation("androidx.compose.material:material-icons-extended")
  62. implementation("androidx.navigation:navigation-compose:2.7.7")
  63. implementation("com.google.android.material:material:1.12.0")
  64. implementation("androidx.room:room-runtime:2.6.1")
  65. implementation("androidx.room:room-ktx:2.6.1")
  66. ksp("androidx.room:room-compiler:2.6.1")
  67. implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.8.1")
  68. implementation("androidx.work:work-runtime-ktx:2.9.1")
  69. coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:2.1.2")
  70. testImplementation("junit:junit:4.13.2")
  71. androidTestImplementation("androidx.test.ext:junit:1.2.1")
  72. androidTestImplementation("androidx.test.espresso:espresso-core:3.6.1")
  73. androidTestImplementation("androidx.compose.ui:ui-test-junit4")
  74. debugImplementation("androidx.compose.ui:ui-tooling")
  75. debugImplementation("androidx.compose.ui:ui-test-manifest")
  76. }