Cleanup and rework build logic (#3113)

This commit is contained in:
AntsyLich
2026-03-22 01:34:45 +06:00
committed by GitHub
parent 2366fbb4b3
commit 4af8f1eab0
65 changed files with 680 additions and 590 deletions
+16 -21
View File
@@ -1,22 +1,26 @@
import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi
plugins {
id("mihon.library")
kotlin("multiplatform")
alias(mihonx.plugins.kotlin.multiplatform)
alias(mihonx.plugins.spotless)
}
kotlin {
androidTarget()
sourceSets {
val commonMain by getting {
dependencies {
implementation(projects.sourceApi)
api(projects.i18n)
android {
namespace = "tachiyomi.source.local"
}
implementation(libs.unifile)
}
}
val androidMain by getting {
@OptIn(ExperimentalKotlinGradlePluginApi::class)
@Suppress("UnstableApiUsage")
dependencies {
implementation(projects.sourceApi)
api(projects.i18n)
implementation(libs.unifile)
}
sourceSets {
androidMain {
dependencies {
implementation(projects.core.archive)
implementation(projects.core.common)
@@ -38,12 +42,3 @@ kotlin {
)
}
}
android {
namespace = "tachiyomi.source.local"
defaultConfig {
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles("consumer-rules.pro")
}
}