build.gradle.kts 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  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("com.google.dagger.hilt.android")
  7. id ("kotlin-android")
  8. }
  9. android {
  10. namespace = "com.example.fitzone"
  11. compileSdk = 34
  12. defaultConfig {
  13. applicationId = "com.example.fitzone"
  14. minSdk = 27
  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. isCoreLibraryDesugaringEnabled
  34. sourceCompatibility = JavaVersion.VERSION_1_8
  35. targetCompatibility = JavaVersion.VERSION_1_8
  36. }
  37. kotlinOptions {
  38. jvmTarget = "1.8"
  39. }
  40. buildFeatures {
  41. compose = true
  42. }
  43. composeOptions {
  44. kotlinCompilerExtensionVersion = "1.5.1"
  45. }
  46. packaging {
  47. resources {
  48. excludes += "/META-INF/{AL2.0,LGPL2.1}"
  49. }
  50. }
  51. }
  52. dependencies {
  53. implementation("androidx.core:core-ktx:1.13.1")
  54. implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.8.0")
  55. implementation("androidx.activity:activity-compose:1.9.0")
  56. implementation(platform("androidx.compose:compose-bom:2023.08.00"))
  57. implementation("androidx.compose.ui:ui")
  58. implementation("androidx.compose.ui:ui-graphics")
  59. implementation("androidx.compose.ui:ui-tooling-preview")
  60. implementation("com.google.android.material:material:1.12.0")
  61. implementation("com.google.firebase:firebase-auth:23.0.0")
  62. implementation("com.google.firebase:firebase-database:21.0.0")
  63. implementation("com.google.firebase:firebase-firestore:25.0.0")
  64. implementation("com.google.firebase:firebase-common-ktx:21.0.0")
  65. implementation("com.google.firebase:firebase-storage:21.0.0")
  66. implementation("androidx.media3:media3-common:1.3.1")
  67. testImplementation("junit:junit:4.13.2")
  68. androidTestImplementation("androidx.test.ext:junit:1.1.5")
  69. androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1")
  70. androidTestImplementation(platform("androidx.compose:compose-bom:2023.08.00"))
  71. androidTestImplementation("androidx.compose.ui:ui-test-junit4")
  72. debugImplementation("androidx.compose.ui:ui-tooling")
  73. debugImplementation("androidx.compose.ui:ui-test-manifest")
  74. implementation("io.coil-kt:coil-compose:2.6.0")
  75. implementation("io.coil-kt:coil-svg:2.2.2")
  76. implementation ("androidx.navigation:navigation-compose:2.7.7")
  77. // Retrofit
  78. implementation("com.squareup.retrofit2:retrofit:2.9.0")
  79. implementation("com.squareup.retrofit2:converter-gson:2.9.0")
  80. implementation("com.squareup.okhttp3:okhttp:4.12.0")
  81. implementation("com.squareup.okhttp3:logging-interceptor:4.10.0")
  82. // Coil
  83. implementation("io.coil-kt:coil-compose:2.6.0")
  84. implementation ("io.github.vanpra.compose-material-dialogs:datetime:0.8.1-rc")
  85. coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:2.0.4")
  86. implementation("androidx.compose.material3:material3-android:1.2.0-rc01")
  87. implementation(platform("com.google.firebase:firebase-bom:33.0.0"))
  88. implementation("com.google.firebase:firebase-analytics")
  89. implementation("com.google.firebase:firebase-auth:23.0.0")
  90. implementation("com.squareup.moshi:moshi-kotlin:1.9.1")
  91. implementation ("com.google.firebase:firebase-messaging:24.0.0")
  92. implementation("com.google.firebase:firebase-appcheck-playintegrity")
  93. implementation("io.coil-kt:coil-compose:2.6.0")
  94. val room_version = "2.6.1"
  95. implementation("androidx.room:room-runtime:$room_version")
  96. annotationProcessor("androidx.room:room-compiler:$room_version")
  97. ksp("androidx.room:room-compiler:$room_version")
  98. // optional - Kotlin Extensions and Coroutines support for Room
  99. implementation("androidx.room:room-ktx:$room_version")
  100. // optional - RxJava2 support for Room
  101. implementation("androidx.room:room-rxjava2:$room_version")
  102. // optional - RxJava3 support for Room
  103. implementation("androidx.room:room-rxjava3:$room_version")
  104. // optional - Guava support for Room, including Optional and ListenableFuture
  105. implementation("androidx.room:room-guava:$room_version")
  106. // optional - Test helpers
  107. testImplementation("androidx.room:room-testing:$room_version")
  108. // optional - Paging 3 Integration
  109. implementation("androidx.room:room-paging:$room_version")
  110. implementation("com.google.dagger:hilt-android:2.44")
  111. ksp("com.google.dagger:hilt-android-compiler:2.44")
  112. implementation("androidx.lifecycle:lifecycle-runtime-compose:2.8.1")
  113. testImplementation ("io.mockk:mockk:1.13.11")
  114. androidTestImplementation ("androidx.compose.ui:ui-test-junit4:1.6.7")
  115. debugImplementation ("androidx.compose.ui:ui-test-manifest:1.6.7")
  116. testImplementation("junit:junit:4.13.2")
  117. testImplementation ("org.mockito:mockito-core:2.24.5")
  118. androidTestImplementation ("org.mockito:mockito-android:2.24.5")
  119. implementation ("androidx.test:core:1.5.0")
  120. testImplementation ("androidx.test.runner.AndroidJUnitRunner:1.3.0")
  121. androidTestImplementation ("androidx.test.ext:junit:1.1.5")
  122. androidTestImplementation ("androidx.test:runner:1.5.2")
  123. androidTestImplementation ("androidx.test.espresso:espresso-core:3.5.1")
  124. debugImplementation ("androidx.compose.ui:ui-tooling:1.6.7")
  125. testImplementation ("org.mockito:mockito-inline:3.11.2")
  126. }