build.gradle 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. }
  8. android {
  9. namespace 'io.nexilis.service'
  10. compileSdk 34
  11. defaultConfig {
  12. minSdk 23
  13. targetSdk 34
  14. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  15. consumerProguardFiles "consumer-rules.pro"
  16. }
  17. buildTypes {
  18. release {
  19. minifyEnabled 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.lifecycle:lifecycle-runtime-ktx:2.7.0"
  42. implementation "androidx.lifecycle:lifecycle-viewmodel-compose:2.7.0"
  43. implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.1"
  44. implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.1"
  45. implementation "com.google.dagger:hilt-android:2.49"
  46. kapt "com.google.dagger:hilt-android-compiler:2.48"
  47. implementation "com.squareup.okhttp3:okhttp:4.12.0"
  48. implementation "androidx.work:work-runtime-ktx:2.9.0"
  49. }
  50. kapt {
  51. correctErrorTypes = true
  52. }