[JVM] Update proguard rules - serialization doesn't work

This commit is contained in:
Kamil Gurgul
2025-02-25 07:44:42 +01:00
parent 5dc70e48af
commit 841085c585
2 changed files with 19 additions and 0 deletions
+1
View File
@@ -65,6 +65,7 @@ compose.desktop {
buildTypes.release.proguard {
isEnabled = false
version = "7.4.2"
configurationFiles.from("rules.pro")
}
}
+18
View File
@@ -9,3 +9,21 @@
-keepclassmembers class * extends androidx.datastore.preferences.protobuf.GeneratedMessageLite {
<fields>;
}
-dontwarn androidx.datastore.preferences.**
# Compose
-optimizations !class/enum/unboxing
-keep,includecode,allowobfuscation,allowshrinking class androidx.compose.runtime.SnapshotStateKt** { *; }
-dontwarn androidx.compose.runtime.**
# Serialization
-keep @kotlinx.serialization.Serializable class * { *; }
# JNA
-keep class com.sun.jna.** { *; }
# OSHI
-keep class oshi.** { *; }
# Okio
-keep class okio.** { *; }