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