Skip to content

Commit d24399e

Browse files
committed
Merge remote-tracking branch 'origin/master' into dev
2 parents 0e19cc7 + afc3bed commit d24399e

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

Diff for: README.md

+11-1
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,17 @@ to add this to your `proguard-rules.pro`:
176176

177177
```proguard
178178
-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
180190
-keep,includedescriptorclasses class com.yourcompany.yourpackage.**$$serializer { *; } # <-- change package name to your app's
181191
-keepclassmembers class com.yourcompany.yourpackage.** { # <-- change package name to your app's
182192
*** Companion;

0 commit comments

Comments
 (0)