mirror of
https://github.com/null2264/yokai.git
synced 2025-06-20 18:24:42 +00:00
46 lines
1.2 KiB
Kotlin
46 lines
1.2 KiB
Kotlin
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
|
|
|
plugins {
|
|
id("yokai.android.library")
|
|
kotlin("multiplatform")
|
|
alias(kotlinx.plugins.serialization)
|
|
}
|
|
|
|
kotlin {
|
|
androidTarget()
|
|
sourceSets {
|
|
val commonMain by getting {
|
|
dependencies {
|
|
api(kotlinx.serialization.json)
|
|
api(project.dependencies.platform(libs.koin.bom))
|
|
api(libs.koin.core)
|
|
api(libs.koin.injekt)
|
|
api(libs.rxjava)
|
|
api(libs.jsoup)
|
|
}
|
|
}
|
|
val androidMain by getting {
|
|
dependencies {
|
|
implementation(projects.core.main)
|
|
api(androidx.preference)
|
|
|
|
// 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<KotlinCompile> {
|
|
compilerOptions.freeCompilerArgs.addAll(
|
|
"-Xexpect-actual-classes",
|
|
)
|
|
}
|
|
}
|