feat: Enable minification and add ProGuard rules (#3576)

Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com>
This commit is contained in:
James Rich 2025-10-30 17:47:18 -05:00 committed by GitHub
parent 453dd398d4
commit 4e60b62af4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 11 additions and 4 deletions

View file

@ -158,10 +158,9 @@ android {
} else {
signingConfig = signingConfigs.getByName("debug")
}
productFlavors.getByName("fdroid") {
isMinifyEnabled = false
isShrinkResources = false
}
isMinifyEnabled = true
isShrinkResources = true
isDebuggable = false
}
}
bundle { language { enableSplit = false } }

View file

@ -0,0 +1,2 @@
-keep class org.meshtastic.core.model.DataPacket
-keep class org.meshtastic.core.model.DataPacket$CREATOR

View file

@ -0,0 +1,6 @@
-keep class org.meshtastic.proto.MeshProtos$DeviceMetadata
-keep class org.meshtastic.proto.MeshProtos$FromRadio
-keep class org.meshtastic.proto.MeshProtos$Position
-keep class org.meshtastic.proto.MeshProtos$User
-keep class org.meshtastic.proto.PaxcountProtos$Paxcount
-keep class org.meshtastic.proto.TelemetryProtos$Telemetry