Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion core/proto/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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) } }
}
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ markdownRenderer = "0.39.2"
okio = "3.16.4"
osmdroid-android = "6.1.20"
spotless = "8.3.0"
wire = "6.0.0-alpha02"
wire = "6.0.0-alpha03"
vico = "3.0.2"
dependency-guard = "0.5.0"
nordic-ble = "2.0.0-alpha15"
Expand Down
Loading