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