build.gradle 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. plugins {
  2. id 'com.android.library'
  3. id 'org.jetbrains.kotlin.android'
  4. id 'com.google.dagger.hilt.android'
  5. id 'kotlin-kapt'
  6. id 'com.google.devtools.ksp'
  7. id 'com.google.gms.google-services'
  8. }
  9. android {
  10. namespace 'io.nexilis.service'
  11. compileSdk 34
  12. defaultConfig {
  13. minSdk 23
  14. targetSdk 34
  15. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  16. consumerProguardFiles "consumer-rules.pro"
  17. }
  18. buildTypes {
  19. release {
  20. minifyEnabled false
  21. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  22. }
  23. }
  24. compileOptions {
  25. sourceCompatibility JavaVersion.VERSION_1_8
  26. targetCompatibility JavaVersion.VERSION_1_8
  27. }
  28. kotlinOptions {
  29. jvmTarget = '1.8'
  30. }
  31. }
  32. dependencies {
  33. implementation 'androidx.core:core-ktx:1.12.0'
  34. implementation files('libs/annotation.jar')
  35. testImplementation("junit:junit:4.13.2")
  36. androidTestImplementation("androidx.test.ext:junit:1.1.5")
  37. androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1")
  38. implementation "androidx.room:room-runtime:2.6.1"
  39. annotationProcessor("androidx.room:room-compiler:2.6.1")
  40. ksp "androidx.room:room-compiler:2.6.1"
  41. implementation "androidx.room:room-ktx: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. }
  54. kapt {
  55. correctErrorTypes = true
  56. }