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