build.gradle.kts 961 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. plugins {
  2. id("com.android.library")
  3. kotlin("android")
  4. kotlin("plugin.serialization")
  5. id("app.cash.sqldelight")
  6. }
  7. android {
  8. namespace = "tachiyomi.data"
  9. defaultConfig {
  10. consumerProguardFiles("consumer-rules.pro")
  11. }
  12. sqldelight {
  13. databases {
  14. create("Database") {
  15. packageName.set("tachiyomi.data")
  16. dialect(libs.sqldelight.dialects.sql)
  17. schemaOutputDirectory.set(project.file("./src/main/sqldelight"))
  18. }
  19. }
  20. }
  21. }
  22. dependencies {
  23. implementation(project(":source-api"))
  24. implementation(project(":domain"))
  25. implementation(project(":core"))
  26. api(libs.bundles.sqldelight)
  27. }
  28. tasks {
  29. withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
  30. kotlinOptions.freeCompilerArgs += listOf(
  31. "-Xcontext-receivers",
  32. "-opt-in=kotlinx.serialization.ExperimentalSerializationApi",
  33. )
  34. }
  35. }