Cleanup and rework build logic (#3113)

# Conflicts:
#	app/build.gradle.kts
#	app/shortcuts.xml
#	app/src/main/res/xml/shortcuts.xml
#	app/src/main/shortcuts.xml
#	build.gradle.kts
#	buildSrc/src/main/kotlin/mihon/buildlogic/AndroidConfig.kt
#	core/archive/build.gradle.kts
#	core/common/build.gradle.kts
#	gradle/build-logic/src/main/kotlin/mihon/gradle/BuildConfig.kt
#	settings.gradle.kts
#	source-api/build.gradle.kts
#	source-local/build.gradle.kts
#	telemetry/build.gradle.kts
This commit is contained in:
AntsyLich
2026-03-22 01:34:45 +06:00
committed by Jobobby04
parent d225b7c586
commit a7d93ae751
63 changed files with 733 additions and 639 deletions
+19 -24
View File
@@ -1,25 +1,29 @@
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)
// SY -->
api(projects.i18nSy)
// SY <--
android {
namespace = "tachiyomi.source.local"
}
implementation(libs.unifile)
}
}
val androidMain by getting {
@OptIn(ExperimentalKotlinGradlePluginApi::class)
@Suppress("UnstableApiUsage")
dependencies {
implementation(projects.sourceApi)
api(projects.i18n)
// SY -->
api(projects.i18nSy)
// SY <--
implementation(libs.unifile)
}
sourceSets {
androidMain {
dependencies {
implementation(projects.core.common)
implementation(projects.coreMetadata)
@@ -40,12 +44,3 @@ kotlin {
)
}
}
android {
namespace = "tachiyomi.source.local"
defaultConfig {
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles("consumer-rules.pro")
}
}
View File
-21
View File
@@ -1,21 +0,0 @@
# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable
# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile