mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
feat: Enable minification and add ProGuard rules (#3576)
Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com>
This commit is contained in:
parent
453dd398d4
commit
4e60b62af4
3 changed files with 11 additions and 4 deletions
|
|
@ -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 } }
|
||||
|
|
|
|||
2
core/model/consumer-rules.pro
Normal file
2
core/model/consumer-rules.pro
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
-keep class org.meshtastic.core.model.DataPacket
|
||||
-keep class org.meshtastic.core.model.DataPacket$CREATOR
|
||||
6
core/proto/consumer-rules.pro
Normal file
6
core/proto/consumer-rules.pro
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue