mirror of
https://github.com/fankes/moshi.git
synced 2025-10-19 16:09:21 +08:00
* Simplify parameterProperties and parameterProperties * Match only on synthetic constructors * Limit synthetic constructor keeps to kotlin classes
This commit is contained in:
@@ -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.
|
||||
|
Reference in New Issue
Block a user