2024-10-31 17:17:27 +03:00
|
|
|
import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi
|
|
|
|
|
2023-02-27 00:16:49 +03:00
|
|
|
plugins {
|
2024-04-06 08:07:11 +03:00
|
|
|
id("mihon.library")
|
2023-03-05 18:16:19 +03:00
|
|
|
kotlin("multiplatform")
|
|
|
|
}
|
|
|
|
|
|
|
|
kotlin {
|
2023-06-25 05:49:36 +03:00
|
|
|
androidTarget()
|
2023-03-05 18:16:19 +03:00
|
|
|
sourceSets {
|
|
|
|
val commonMain by getting {
|
|
|
|
dependencies {
|
2024-01-23 15:35:58 +03:00
|
|
|
implementation(projects.sourceApi)
|
|
|
|
api(projects.i18n)
|
2023-11-18 21:54:56 +03:00
|
|
|
|
2023-03-05 18:16:19 +03:00
|
|
|
implementation(libs.unifile)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
val androidMain by getting {
|
|
|
|
dependencies {
|
2024-09-05 13:00:46 +03:00
|
|
|
implementation(projects.core.archive)
|
2024-01-29 12:11:28 +03:00
|
|
|
implementation(projects.core.common)
|
2024-01-23 15:35:58 +03:00
|
|
|
implementation(projects.coreMetadata)
|
2023-03-05 18:16:19 +03:00
|
|
|
|
|
|
|
// Move ChapterRecognition to separate module?
|
2024-01-23 15:35:58 +03:00
|
|
|
implementation(projects.domain)
|
2023-03-05 18:16:19 +03:00
|
|
|
|
|
|
|
implementation(kotlinx.bundles.serialization)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2024-10-31 17:17:27 +03:00
|
|
|
|
|
|
|
@OptIn(ExperimentalKotlinGradlePluginApi::class)
|
|
|
|
compilerOptions {
|
|
|
|
freeCompilerArgs.addAll(
|
|
|
|
"-Xexpect-actual-classes",
|
|
|
|
"-opt-in=kotlinx.serialization.ExperimentalSerializationApi",
|
|
|
|
)
|
|
|
|
}
|
2023-02-27 00:16:49 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
android {
|
|
|
|
namespace = "tachiyomi.source.local"
|
|
|
|
|
|
|
|
defaultConfig {
|
|
|
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
|
|
|
consumerProguardFiles("consumer-rules.pro")
|
|
|
|
}
|
|
|
|
}
|