mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
build(ksp): ksp and publishing tuning (#4462)
Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com>
This commit is contained in:
parent
9e6de124ee
commit
18aae852fd
9 changed files with 84 additions and 10 deletions
|
|
@ -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")
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ afterEvaluate {
|
|||
publications {
|
||||
create<MavenPublication>("release") {
|
||||
from(components["release"])
|
||||
artifactId = "core-api"
|
||||
artifactId = "meshtastic-android-api"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
```
|
||||
|
|
@ -47,7 +47,7 @@ afterEvaluate {
|
|||
publications {
|
||||
create<MavenPublication>("release") {
|
||||
from(components["release"])
|
||||
artifactId = "core-model"
|
||||
artifactId = "meshtastic-android-model"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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-")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue