build.gradle.kts 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. plugins {
  2. kotlin("android")
  3. id("kotlinx-serialization")
  4. id("com.android.library")
  5. id("com.google.devtools.ksp")
  6. }
  7. dependencies {
  8. implementation(project(":core"))
  9. implementation(project(":common"))
  10. ksp(libs.kaidl.compiler)
  11. ksp(libs.androidx.room.compiler)
  12. implementation(libs.kotlin.coroutine)
  13. implementation(libs.kotlin.serialization.json)
  14. implementation(libs.androidx.core)
  15. implementation(libs.androidx.room.runtime)
  16. implementation(libs.androidx.room.ktx)
  17. implementation(libs.kaidl.runtime)
  18. implementation(libs.rikkax.multiprocess)
  19. implementation(platform("com.squareup.okhttp3:okhttp-bom:4.10.0"))
  20. // define any required OkHttp artifacts without version
  21. implementation("com.squareup.okhttp3:okhttp")
  22. implementation("com.squareup.okhttp3:logging-interceptor")
  23. }
  24. afterEvaluate {
  25. android {
  26. libraryVariants.forEach {
  27. sourceSets[it.name].kotlin.srcDir(buildDir.resolve("generated/ksp/${it.name}/kotlin"))
  28. sourceSets[it.name].java.srcDir(buildDir.resolve("generated/ksp/${it.name}/java"))
  29. }
  30. }
  31. }