Skip to content

Commit 38a93a2

Browse files
authored
Merge pull request #494 from MaxMello/2.13
Additional caveat for using produard added
2 parents d780f8e + b67e8a2 commit 38a93a2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ Note that using `lateinit` or `Delegates.notNull()` will ensure that the value i
124124
* If using proguard:
125125
* `kotlin.Metadata` annotations may be stripped, preventing deserialization. Add a proguard rule to keep the `kotlin.Metadata` class: `-keep class kotlin.Metadata { *; }`
126126
* If you're getting `java.lang.ExceptionInInitializerError`, you may also need: `-keep class kotlin.reflect.** { *; }`
127+
* If you're still running into problems, you might also need to add a proguard keep rule for the specific classes you want to (de-)serialize. For example, if all your models are inside the package `com.example.models`, you could add the rule `-keep class com.example.models.** { *; }`
127128

128129
# Support for Kotlin Built-in classes
129130

0 commit comments

Comments
 (0)