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