build(desktop): enable ProGuard for release builds (#4772)

This commit is contained in:
James Rich
2026-03-12 21:57:29 -05:00
committed by GitHub
parent 3d93d0b4e3
commit 87e291f58d
2 changed files with 6 additions and 0 deletions

View File

@@ -43,6 +43,8 @@ compose.desktop {
application {
mainClass = "org.meshtastic.desktop.MainKt"
buildTypes.release.proguard { configurationFiles.from(project.file("proguard-rules.pro")) }
nativeDistributions {
targetFormats(TargetFormat.Dmg, TargetFormat.Msi, TargetFormat.Deb)
packageName = "Meshtastic"

4
desktop/proguard-rules.pro vendored Normal file
View File

@@ -0,0 +1,4 @@
-dontwarn android.os.Parcel**
-dontwarn android.os.Parcelable**
-dontwarn com.squareup.wire.AndroidMessage**
-dontwarn io.ktor.**