build.gradle.kts 940 B

12345678910111213141516171819202122232425262728293031323334353637
  1. plugins {
  2. kotlin("multiplatform")
  3. kotlin("plugin.serialization")
  4. id("com.android.library")
  5. }
  6. kotlin {
  7. androidTarget()
  8. sourceSets {
  9. val commonMain by getting {
  10. dependencies {
  11. api(kotlinx.serialization.json)
  12. api(libs.injekt.core)
  13. api(libs.rxjava)
  14. api(libs.jsoup)
  15. }
  16. }
  17. val androidMain by getting {
  18. dependencies {
  19. implementation(project(":core"))
  20. api(libs.preferencektx)
  21. // Workaround for https://youtrack.jetbrains.com/issue/KT-57605
  22. implementation(kotlinx.coroutines.android)
  23. implementation(project.dependencies.platform(kotlinx.coroutines.bom))
  24. }
  25. }
  26. }
  27. }
  28. android {
  29. namespace = "eu.kanade.tachiyomi.source"
  30. defaultConfig {
  31. consumerProguardFile("consumer-proguard.pro")
  32. }
  33. }