mirror of
https://github.com/aniyomiorg/aniyomi.git
synced 2024-11-22 04:39:32 +03:00
a095952e0f
(cherry picked from commit c929854ae9
)
51 lines
1.3 KiB
Text
51 lines
1.3 KiB
Text
plugins {
|
|
id("mihon.library")
|
|
kotlin("multiplatform")
|
|
kotlin("plugin.serialization")
|
|
}
|
|
|
|
kotlin {
|
|
androidTarget()
|
|
sourceSets {
|
|
val commonMain by getting {
|
|
dependencies {
|
|
api(kotlinx.serialization.json)
|
|
api(libs.injekt)
|
|
api(libs.rxjava)
|
|
api(libs.jsoup)
|
|
|
|
implementation(project.dependencies.platform(compose.bom))
|
|
implementation(compose.runtime)
|
|
}
|
|
}
|
|
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> {
|
|
compilerOptions.freeCompilerArgs.addAll(
|
|
listOf(
|
|
"-Xexpect-actual-classes",
|
|
"-opt-in=kotlinx.serialization.ExperimentalSerializationApi",
|
|
),
|
|
)
|
|
}
|
|
}
|