
(cherry picked from commit e448e40406e8d9916120a278e42829a6f1b25a7a) # Conflicts: # app/build.gradle.kts # buildSrc/src/main/kotlin/AndroidConfig.kt # i18n/build.gradle.kts # source-api/build.gradle.kts
52 lines
1.3 KiB
Plaintext
52 lines
1.3 KiB
Plaintext
plugins {
|
|
id("mihon.library")
|
|
kotlin("multiplatform")
|
|
kotlin("plugin.serialization")
|
|
id("com.github.ben-manes.versions")
|
|
}
|
|
|
|
kotlin {
|
|
androidTarget()
|
|
sourceSets {
|
|
val commonMain by getting {
|
|
dependencies {
|
|
api(kotlinx.serialization.json)
|
|
api(libs.injekt.core)
|
|
api(libs.rxjava)
|
|
api(libs.jsoup)
|
|
// SY -->
|
|
api(projects.i18n)
|
|
api(projects.i18nSy)
|
|
api(kotlinx.reflect)
|
|
// SY <--
|
|
}
|
|
}
|
|
val androidMain by getting {
|
|
dependencies {
|
|
implementation(projects.core.common)
|
|
api(libs.preferencektx)
|
|
|
|
// Workaround for https://youtrack.jetbrains.com/issue/KT-57605
|
|
implementation(kotlinx.coroutines.android)
|
|
implementation(project.dependencies.platform(kotlinx.coroutines.bom))
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
android {
|
|
namespace = "eu.kanade.tachiyomi.source"
|
|
|
|
defaultConfig {
|
|
consumerProguardFile("consumer-proguard.pro")
|
|
}
|
|
}
|
|
|
|
tasks {
|
|
withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
|
|
kotlinOptions.freeCompilerArgs += listOf(
|
|
"-Xexpect-actual-classes",
|
|
)
|
|
}
|
|
}
|