File tree 1 file changed +11
-1
lines changed
1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -173,7 +173,17 @@ to add this to your `proguard-rules.pro`:
173
173
174
174
``` proguard
175
175
-keepattributes *Annotation*, InnerClasses
176
- -dontnote kotlinx.serialization.SerializationKt
176
+ -dontnote kotlinx.serialization.AnnotationsKt # core serialization annotations
177
+
178
+ # kotlinx-serialization-json specific. Add this if you have java.lang.NoClassDefFoundError kotlinx.serialization.json.JsonObjectSerializer
179
+ -keepclassmembers class kotlinx.serialization.json.** {
180
+ *** Companion;
181
+ }
182
+ -keepclasseswithmembers class kotlinx.serialization.json.** {
183
+ kotlinx.serialization.KSerializer serializer(...);
184
+ }
185
+
186
+ # Change here com.yourcompany.yourpackage
177
187
-keep,includedescriptorclasses class com.yourcompany.yourpackage.**$$serializer { *; } # <-- change package name to your app's
178
188
-keepclassmembers class com.yourcompany.yourpackage.** { # <-- change package name to your app's
179
189
*** Companion;
You can’t perform that action at this time.
0 commit comments