build.gradle.kts 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. implementation(libs.unifile)
  12. implementation(libs.junrar)
  13. }
  14. }
  15. val androidMain by getting {
  16. dependencies {
  17. implementation(project(":core"))
  18. implementation(project(":core-metadata"))
  19. // Move ChapterRecognition to separate module?
  20. implementation(project(":domain"))
  21. implementation(kotlinx.bundles.serialization)
  22. }
  23. }
  24. }
  25. }
  26. android {
  27. namespace = "tachiyomi.source.local"
  28. defaultConfig {
  29. testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
  30. consumerProguardFiles("consumer-rules.pro")
  31. }
  32. }
  33. tasks {
  34. withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
  35. kotlinOptions.freeCompilerArgs += listOf(
  36. "-opt-in=kotlinx.serialization.ExperimentalSerializationApi",
  37. )
  38. }
  39. }