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