2022-09-15 22:12:27 +00:00
|
|
|
plugins {
|
2023-03-05 15:16:19 +00:00
|
|
|
kotlin("multiplatform")
|
2022-09-15 22:12:27 +00:00
|
|
|
kotlin("plugin.serialization")
|
2023-03-05 15:16:19 +00:00
|
|
|
id("com.android.library")
|
|
|
|
}
|
|
|
|
|
|
|
|
kotlin {
|
2023-06-25 02:49:36 +00:00
|
|
|
androidTarget()
|
2023-03-05 15:16:19 +00: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 {
|
|
|
|
implementation(project(":core"))
|
|
|
|
api(libs.preferencektx)
|
2023-05-13 16:05:19 +00:00
|
|
|
|
|
|
|
// Workaround for https://youtrack.jetbrains.com/issue/KT-57605
|
|
|
|
implementation(kotlinx.coroutines.android)
|
|
|
|
implementation(project.dependencies.platform(kotlinx.coroutines.bom))
|
2023-03-05 15:16:19 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-09-15 22:12:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
android {
|
|
|
|
namespace = "eu.kanade.tachiyomi.source"
|
|
|
|
|
|
|
|
defaultConfig {
|
2022-09-17 14:26:02 +00:00
|
|
|
consumerProguardFile("consumer-proguard.pro")
|
2022-09-15 22:12:27 +00:00
|
|
|
}
|
|
|
|
}
|
2023-11-19 15:54:19 +00:00
|
|
|
|
|
|
|
tasks {
|
|
|
|
withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
|
|
|
|
kotlinOptions.freeCompilerArgs += listOf(
|
|
|
|
"-Xexpect-actual-classes",
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|