build.gradle.kts 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. plugins {
  2. id("com.android.library")
  3. id("org.jetbrains.kotlin.android")
  4. id("com.google.devtools.ksp")
  5. id("com.google.dagger.hilt.android")
  6. id("kotlin-kapt")
  7. id("com.google.gms.google-services")
  8. }
  9. android {
  10. namespace = "io.nexilis.service"
  11. compileSdk = 34
  12. defaultConfig {
  13. minSdk = 23
  14. testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
  15. consumerProguardFiles("consumer-rules.pro")
  16. }
  17. buildTypes {
  18. release {
  19. isMinifyEnabled = false
  20. proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
  21. }
  22. }
  23. compileOptions {
  24. sourceCompatibility = JavaVersion.VERSION_1_8
  25. targetCompatibility = JavaVersion.VERSION_1_8
  26. }
  27. kotlinOptions {
  28. jvmTarget = "1.8"
  29. }
  30. }
  31. dependencies {
  32. implementation("androidx.core:core-ktx:1.12.0")
  33. implementation(files("libs/annotation.jar"))
  34. testImplementation("junit:junit:4.13.2")
  35. androidTestImplementation("androidx.test.ext:junit:1.1.5")
  36. androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1")
  37. implementation("androidx.room:room-runtime:2.6.1")
  38. annotationProcessor("androidx.room:room-compiler:2.6.1")
  39. ksp("androidx.room:room-compiler:2.6.1")
  40. implementation("androidx.room:room-ktx:2.6.1")
  41. implementation("androidx.room:room-paging:2.6.1")
  42. implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.7.0")
  43. implementation("androidx.lifecycle:lifecycle-viewmodel-compose:2.7.0")
  44. implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.8.0")
  45. implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.8.0")
  46. implementation("com.google.dagger:hilt-android:2.49")
  47. kapt("com.google.dagger:hilt-android-compiler:2.48")
  48. implementation("com.squareup.okhttp3:okhttp:4.12.0")
  49. implementation("androidx.work:work-runtime-ktx:2.9.0")
  50. implementation(platform("com.google.firebase:firebase-bom:32.7.2"))
  51. implementation("com.google.firebase:firebase-messaging-ktx")
  52. implementation("io.coil-kt:coil:2.6.0")
  53. implementation("androidx.paging:paging-common-ktx:3.2.1")
  54. }
  55. kapt {
  56. correctErrorTypes = true
  57. }