Followups from #896 (#907)

* Simplify parameterProperties and parameterProperties

* Match only on synthetic constructors

* Limit synthetic constructor keeps to kotlin classes
This commit is contained in:
Zac Sweers
2019-09-11 04:55:24 -04:00
committed by GitHub
parent ea300997a1
commit c820314107
2 changed files with 5 additions and 10 deletions

View File

@@ -22,8 +22,8 @@
# We can't _just_ keep the defaults constructor because Proguard/R8's spec doesn't allow wildcard
# matching preceding parameters.
-keepnames class kotlin.jvm.internal.DefaultConstructorMarker
-keepclassmembers @com.squareup.moshi.JsonClass class * {
<init>(...);
-keepclassmembers @com.squareup.moshi.JsonClass @kotlin.Metadata class * {
synthetic <init>(...);
}
# Retain generated JsonAdapters if annotated type is retained.