Skip to content

Commit

Permalink
updated proguard rules to keep serializer classes
Browse files Browse the repository at this point in the history
  • Loading branch information
mzorz committed Jul 7, 2020
1 parent 402b9ba commit ef642bb
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions photoeditor/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,12 @@
# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
-keepattributes *Annotation*, InnerClasses
-dontnote kotlinx.serialization.SerializationKt
-keep,includedescriptorclasses class com.automattic.photoeditor.**$$serializer { *; } # <-- change package name to your app's
-keepclassmembers class com.automattic.photoeditor.** { # <-- change package name to your app's
*** Companion;
}
-keepclasseswithmembers class com.automattic.photoeditor.** { # <-- change package name to your app's
kotlinx.serialization.KSerializer serializer(...);
}
9 changes: 9 additions & 0 deletions stories/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,12 @@
# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
-keepattributes *Annotation*, InnerClasses
-dontnote kotlinx.serialization.SerializationKt
-keep,includedescriptorclasses class com.wordpress.stories.**$$serializer { *; } # <-- change package name to your app's
-keepclassmembers class com.wordpress.stories.** { # <-- change package name to your app's
*** Companion;
}
-keepclasseswithmembers class com.wordpress.stories.** { # <-- change package name to your app's
kotlinx.serialization.KSerializer serializer(...);
}

0 comments on commit ef642bb

Please sign in to comment.