mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
chore(deps): update wire to v6.0.0-alpha03 (#4701)
Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: James Rich <2199651+jamesarich@users.noreply.github.com>
This commit is contained in:
parent
034c85d191
commit
744db2d5bd
2 changed files with 6 additions and 2 deletions
|
|
@ -28,7 +28,7 @@ kotlin {
|
|||
jvm()
|
||||
|
||||
// Override minSdk for ATAK compatibility (standard is 26)
|
||||
androidLibrary { minSdk = 21 }
|
||||
android { minSdk = 21 }
|
||||
|
||||
sourceSets { commonMain.dependencies { api(libs.wire.runtime) } }
|
||||
}
|
||||
|
|
@ -39,6 +39,10 @@ wire {
|
|||
srcDir("src/main/wire-includes")
|
||||
}
|
||||
kotlin {
|
||||
// Wire 6 optimization: Avoid unnecessary immutable copies of repeated/map fields.
|
||||
// Improves performance by reducing allocations when decoding/creating messages.
|
||||
makeImmutableCopies = false
|
||||
|
||||
// Flattens 'oneof' fields into nullable properties on the parent class.
|
||||
// This removes the intermediate sealed classes, simplifying usage and reducing method count/binary size.
|
||||
// Codebase is already written to use the nullable properties (e.g. packet.decoded vs
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue