You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# kotlinx-serialization-json specific. Add this if you have java.lang.NoClassDefFoundError kotlinx.serialization.json.JsonObjectSerializer
186
236
-keepclassmembers class kotlinx.serialization.json.** {
@@ -208,12 +258,12 @@ to add this to your `proguard-rules.pro`:
208
258
209
259
# Serialization supports named companions but for such classes it is necessary to add an additional rule.
210
260
# This rule keeps serializer and serializable class from obfuscation. Therefore, it is recommended not to use wildcards in it, but to write rules for each such class.
261
+
-keepattributes InnerClasses # Needed for `getDeclaredClasses`.
211
262
-keep class com.yourcompany.yourpackage.SerializableClassWithNamedCompanion$$serializer {
212
263
*** INSTANCE;
213
264
}
214
265
```
215
-
216
-
You may also want to keep all custom serializers you've defined.
0 commit comments