mirror of
https://github.com/Monkopedia/rouse-context.git
synced 2026-11-22 05:16:11 +00:00
Phase 1 of #129: drop Android plugin from :core:mcp
- Remove alias(libs.plugins.android.library) and the android {} block
- Remove androidTarget() from kotlin {} (module has zero Android-API content)
- Rename src/commonMain -> src/jvmMain (JVM-only code; source layout now
matches reality)
- Collapse commonMain/commonTest sourceSets{} DSL into jvmMain/jvmTest;
folds the jvmTest block's extras up
Keeps the KMP plugin for future multi-target flexibility per issue spec.
Dropping AGP removes AAPT, manifest-merging, and AAR bundling overhead
from every build of this module.
This commit is contained in:
parent
b4ec9c4510
commit
8d10ceb683
17 changed files with 2 additions and 31 deletions
|
|
@ -1,20 +1,13 @@
|
|||
plugins {
|
||||
alias(libs.plugins.kotlin.multiplatform)
|
||||
alias(libs.plugins.android.library)
|
||||
alias(libs.plugins.kotlin.serialization)
|
||||
}
|
||||
|
||||
kotlin {
|
||||
jvm()
|
||||
|
||||
androidTarget {
|
||||
compilerOptions {
|
||||
jvmTarget.set(org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_17)
|
||||
}
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
commonMain.dependencies {
|
||||
jvmMain.dependencies {
|
||||
api(libs.mcp.sdk)
|
||||
implementation(libs.ktor.server.core)
|
||||
implementation(libs.ktor.server.cio)
|
||||
|
|
@ -23,33 +16,11 @@ kotlin {
|
|||
implementation(libs.kotlinx.io.core)
|
||||
}
|
||||
|
||||
commonTest.dependencies {
|
||||
implementation(kotlin("test"))
|
||||
}
|
||||
|
||||
jvmTest.dependencies {
|
||||
implementation(kotlin("test"))
|
||||
implementation(libs.junit)
|
||||
implementation(libs.kotlinx.coroutines.test)
|
||||
implementation(libs.ktor.server.test.host)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.rousecontext.mcp.core"
|
||||
compileSdk = 36
|
||||
|
||||
defaultConfig {
|
||||
minSdk = 24
|
||||
}
|
||||
|
||||
compileOptions {
|
||||
isCoreLibraryDesugaringEnabled = true
|
||||
sourceCompatibility = JavaVersion.VERSION_17
|
||||
targetCompatibility = JavaVersion.VERSION_17
|
||||
}
|
||||
|
||||
dependencies {
|
||||
coreLibraryDesugaring(libs.desugar.jdk.libs)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue