build.gradle.kts 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. plugins {
  2. kotlin("multiplatform")
  3. id("com.android.library")
  4. }
  5. kotlin {
  6. androidTarget()
  7. sourceSets {
  8. val commonMain by getting {
  9. dependencies {
  10. implementation(project(":source-api"))
  11. api(project(":i18n"))
  12. implementation(libs.unifile)
  13. implementation(libs.junrar)
  14. }
  15. }
  16. val androidMain by getting {
  17. dependencies {
  18. implementation(project(":core"))
  19. implementation(project(":core-metadata"))
  20. // Move ChapterRecognition to separate module?
  21. implementation(project(":domain"))
  22. implementation(kotlinx.bundles.serialization)
  23. }
  24. }
  25. }
  26. }
  27. android {
  28. namespace = "tachiyomi.source.local"
  29. defaultConfig {
  30. testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
  31. consumerProguardFiles("consumer-rules.pro")
  32. }
  33. }
  34. tasks {
  35. withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
  36. kotlinOptions.freeCompilerArgs += listOf(
  37. "-Xexpect-actual-classes",
  38. "-opt-in=kotlinx.serialization.ExperimentalSerializationApi",
  39. )
  40. }
  41. }