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
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