2022-09-15 18:12:27 -04:00
|
|
|
plugins {
|
2023-03-05 10:16:19 -05:00
|
|
|
kotlin("multiplatform")
|
2022-09-15 18:12:27 -04:00
|
|
|
kotlin("plugin.serialization")
|
2023-03-05 10:16:19 -05:00
|
|
|
id("com.android.library")
|
|
|
|
}
|
|
|
|
|
|
|
|
kotlin {
|
2023-06-24 22:49:36 -04:00
|
|
|
androidTarget()
|
2023-03-05 10:16:19 -05:00
|
|
|
sourceSets {
|
|
|
|
val commonMain by getting {
|
|
|
|
dependencies {
|
|
|
|
api(kotlinx.serialization.json)
|
|
|
|
api(libs.injekt.core)
|
|
|
|
api(libs.rxjava)
|
|
|
|
api(libs.jsoup)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
val androidMain by getting {
|
|
|
|
dependencies {
|
2024-01-29 04:11:28 -05:00
|
|
|
implementation(projects.core.common)
|
2023-03-05 10:16:19 -05:00
|
|
|
api(libs.preferencektx)
|
2023-05-13 12:05:19 -04:00
|
|
|
|
|
|
|
// Workaround for https://youtrack.jetbrains.com/issue/KT-57605
|
|
|
|
implementation(kotlinx.coroutines.android)
|
|
|
|
implementation(project.dependencies.platform(kotlinx.coroutines.bom))
|
2023-03-05 10:16:19 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-09-15 18:12:27 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
android {
|
|
|
|
namespace = "eu.kanade.tachiyomi.source"
|
|
|
|
|
|
|
|
defaultConfig {
|
2022-09-17 10:26:02 -04:00
|
|
|
consumerProguardFile("consumer-proguard.pro")
|
2022-09-15 18:12:27 -04:00
|
|
|
}
|
|
|
|
}
|
2023-11-19 10:54:19 -05:00
|
|
|
|
|
|
|
tasks {
|
|
|
|
withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
|
|
|
|
kotlinOptions.freeCompilerArgs += listOf(
|
|
|
|
"-Xexpect-actual-classes",
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|