build(ksp): ksp and publishing tuning (#4462)

Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com>
This commit is contained in:
James Rich 2026-02-05 16:36:38 -06:00 committed by GitHub
parent 9e6de124ee
commit 18aae852fd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 84 additions and 10 deletions

View file

@ -28,13 +28,13 @@ dependencies {
val meshtasticVersion = "v2.7.13"
// The core AIDL interface
implementation("com.github.meshtastic.Meshtastic-Android:core-api:$meshtasticVersion")
implementation("com.github.meshtastic.Meshtastic-Android:meshtastic-android-api:$meshtasticVersion")
// Data models (DataPacket, MeshUser, NodeInfo, etc.)
implementation("com.github.meshtastic.Meshtastic-Android:core-model:$meshtasticVersion")
implementation("com.github.meshtastic.Meshtastic-Android:meshtastic-android-model:$meshtasticVersion")
// Protobuf definitions (PortNum, Telemetry, etc.)
implementation("com.github.meshtastic.Meshtastic-Android:core-proto:$meshtasticVersion")
implementation("com.github.meshtastic.Meshtastic-Android:meshtastic-android-proto:$meshtasticVersion")
}
```

View file

@ -39,7 +39,7 @@ afterEvaluate {
publications {
create<MavenPublication>("release") {
from(components["release"])
artifactId = "core-api"
artifactId = "meshtastic-android-api"
}
}
}

View file

@ -36,5 +36,5 @@ This module contains the Parcelable data classes used by the Meshtastic Android
This module is typically used as a dependency of `core:api` but can be used independently if you need to work with Meshtastic data structures.
```kotlin
implementation("com.github.meshtastic.Meshtastic-Android:core-model:v2.7.12")
implementation("com.github.meshtastic.Meshtastic-Android:meshtastic-android-model:v2.7.12")
```

View file

@ -47,7 +47,7 @@ afterEvaluate {
publications {
create<MavenPublication>("release") {
from(components["release"])
artifactId = "core-model"
artifactId = "meshtastic-android-model"
}
}
}

View file

@ -56,9 +56,9 @@ publishing {
publications.withType<MavenPublication>().configureEach {
val baseId = artifactId
if (baseId == "proto") {
artifactId = "core-proto"
artifactId = "meshtastic-android-proto"
} else if (baseId.startsWith("proto-")) {
artifactId = baseId.replace("proto-", "core-proto-")
artifactId = baseId.replace("proto-", "meshtastic-android-proto-")
}
}
}