build.gradle.kts 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. plugins {
  2. id("com.android.application")
  3. id("org.jetbrains.kotlin.android")
  4. id("com.google.gms.google-services")
  5. id("com.google.devtools.ksp")
  6. id ("kotlin-android")
  7. id("com.google.dagger.hilt.android")
  8. }
  9. android {
  10. namespace = "com.example.tasks"
  11. compileSdk = 34
  12. defaultConfig {
  13. applicationId = "com.example.tasks"
  14. minSdk = 26
  15. targetSdk = 34
  16. versionCode = 1
  17. versionName = "1.0"
  18. testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
  19. vectorDrawables {
  20. useSupportLibrary = true
  21. }
  22. }
  23. buildTypes {
  24. release {
  25. isMinifyEnabled = false
  26. proguardFiles(
  27. getDefaultProguardFile("proguard-android-optimize.txt"),
  28. "proguard-rules.pro"
  29. )
  30. }
  31. }
  32. compileOptions {
  33. sourceCompatibility = JavaVersion.VERSION_1_8
  34. targetCompatibility = JavaVersion.VERSION_1_8
  35. }
  36. kotlinOptions {
  37. jvmTarget = "1.8"
  38. }
  39. packagingOptions {
  40. resources {
  41. excludes += "/META-INF/{AL2.0,LGPL2.1}"
  42. merges += "META-INF/LICENSE.md"
  43. merges += "META-INF/LICENSE-notice.md"
  44. }
  45. }
  46. buildFeatures {
  47. compose = true
  48. }
  49. composeOptions {
  50. kotlinCompilerExtensionVersion = "1.5.1"
  51. }
  52. packaging {
  53. resources {
  54. excludes += "/META-INF/{AL2.0,LGPL2.1}"
  55. }
  56. }
  57. }
  58. dependencies {
  59. implementation("androidx.core:core-ktx:1.13.1")
  60. implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.8.3")
  61. implementation("androidx.activity:activity-compose:1.9.0")
  62. implementation(platform("androidx.compose:compose-bom:2023.08.00"))
  63. implementation("androidx.compose.ui:ui")
  64. implementation("androidx.compose.ui:ui-graphics")
  65. implementation("androidx.compose.ui:ui-tooling-preview")
  66. implementation("androidx.compose.material3:material3:1.2.0-rc01")
  67. implementation("androidx.navigation:navigation-compose:2.7.7")
  68. implementation("com.google.firebase:firebase-firestore:25.0.0")
  69. testImplementation("junit:junit:4.13.2")
  70. androidTestImplementation("androidx.test.ext:junit:1.2.1")
  71. androidTestImplementation ("androidx.test:core:1.4.1-alpha04")
  72. androidTestImplementation("androidx.test.espresso:espresso-core:3.5.0-alpha04")
  73. androidTestImplementation(platform("androidx.compose:compose-bom:2023.08.00"))
  74. androidTestImplementation("androidx.compose.ui:ui-test-junit4")
  75. debugImplementation("androidx.compose.ui:ui-tooling")
  76. debugImplementation("androidx.compose.ui:ui-test-manifest")
  77. implementation(platform("com.google.firebase:firebase-bom:33.1.1"))
  78. implementation("com.google.firebase:firebase-analytics")
  79. implementation("androidx.lifecycle:lifecycle-viewmodel-compose:2.8.3")
  80. implementation ("io.github.vanpra.compose-material-dialogs:datetime:0.8.1-rc")
  81. coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:2.0.4")
  82. implementation("androidx.room:room-runtime:2.6.1")
  83. annotationProcessor("androidx.room:room-compiler:2.6.1")
  84. // optional - Kotlin Extensions and Coroutines support for Room
  85. implementation("androidx.room:room-ktx:2.6.1")
  86. // optional - RxJava2 support for Room
  87. implementation("androidx.room:room-rxjava2:2.6.1")
  88. // optional - RxJava3 support for Room
  89. implementation("androidx.room:room-rxjava3:2.6.1")
  90. // optional - Guava support for Room, including Optional and ListenableFuture
  91. implementation("androidx.room:room-guava:2.6.1")
  92. // optional - Test helpers
  93. testImplementation("androidx.room:room-testing:2.6.1")
  94. // optional - Paging 3 Integration
  95. implementation("androidx.room:room-paging:2.6.1")
  96. ksp("androidx.room:room-compiler:2.6.1")
  97. implementation("com.google.accompanist:accompanist-swiperefresh:0.27.0")
  98. testImplementation ("junit:junit:4.13.2")
  99. androidTestImplementation("androidx.test.ext:junit:1.2.1")
  100. androidTestImplementation("androidx.test.espresso:espresso-core:3.6.1")
  101. androidTestImplementation("androidx.compose.ui:ui-test-junit4:1.6.8")
  102. debugImplementation("androidx.compose.ui:ui-tooling:1.6.8")
  103. androidTestImplementation("androidx.test.ext:junit:1.2.1")
  104. androidTestImplementation("androidx.test.espresso:espresso-core:3.6.1")
  105. androidTestImplementation("androidx.compose.ui:ui-test-junit4:1.6.8")
  106. debugImplementation("androidx.compose.ui:ui-tooling:1.6.8")
  107. testImplementation("androidx.test:core:1.6.1")
  108. testImplementation("junit:junit:4.13.2")
  109. testImplementation("androidx.arch.core:core-testing:2.2.0")
  110. testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.6.4")
  111. testImplementation("com.google.truth:truth:1.1.3")
  112. testImplementation("com.squareup.okhttp3:mockwebserver:4.9.1")
  113. testImplementation("io.mockk:mockk:1.13.11")
  114. debugImplementation("androidx.compose.ui:ui-test-manifest:1.6.8")
  115. implementation("com.google.dagger:hilt-android:2.44")
  116. ksp("com.google.dagger:hilt-android-compiler:2.44")
  117. androidTestImplementation ("com.google.dagger:hilt-android-testing:2.38.1")
  118. implementation("io.mockk:mockk:1.13.11")
  119. debugImplementation ("androidx.test:monitor:1.7.1")
  120. val nav_version = "2.7.7"
  121. androidTestImplementation("androidx.navigation:navigation-testing:$nav_version")
  122. }