```-keepattributes *Annotation*, InnerClasses -don...
# android
v
Copy code
-keepattributes *Annotation*, InnerClasses
-dontnote kotlinx.serialization.SerializationKt
-keep,includedescriptorclasses class com.yourcompany.yourpackage.**$$serializer { *; } # <-- change package name to your app's
-keepclassmembers class com.yourcompany.yourpackage.** { # <-- change package name to your app's
    *** Companion;
}
-keepclasseswithmembers class com.yourcompany.yourpackage.** { # <-- change package name to your app's
    kotlinx.serialization.KSerializer serializer(...);
}
The package name is changed,.. getting exception in kotlinx.serialization 1.0.0-RC
Copy code
Serializer for class 'e' is not found.
    Mark the class as @Serializable or provide the serializer explicitly.
Data classes are in shared code. Why progaurd configuration is not working with minify enabled.  can anyone help what I am missing here? GitHub Kotlin/kotlinx.serialization Kotlin multiplatform / multi-format serialization - Kotlin/kotlinx.serialization
d
You should change package name in proguard rules as you can see in the comment.
v
The package name is changed. not working
g
Serializer for class 'e' is not found
looks that you have obfuscation enabled
so this keep rule wouldn’t work for it
so or keep serializers for all classes, or add package to your obfuscated classes