[JVM] Update proguard rules - serialization doesn't work
This commit is contained in:
@@ -65,6 +65,7 @@ compose.desktop {
|
||||
|
||||
buildTypes.release.proguard {
|
||||
isEnabled = false
|
||||
version = "7.4.2"
|
||||
configurationFiles.from("rules.pro")
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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.** { *; }
|
||||
|
||||
Reference in New Issue
Block a user