mirror of
https://github.com/fankes/moshi.git
synced 2025-10-20 00:19:21 +08:00
Keep @FromJson
/@ToJson
-annotated methods in proguard (#1499)
This commit is contained in:
@@ -19,3 +19,9 @@
|
|||||||
-keepclassmembers class com.squareup.moshi.internal.Util {
|
-keepclassmembers class com.squareup.moshi.internal.Util {
|
||||||
private static java.lang.String getKotlinMetadataClassName();
|
private static java.lang.String getKotlinMetadataClassName();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Keep ToJson/FromJson-annotated methods
|
||||||
|
-keepclassmembers class * {
|
||||||
|
@com.squareup.moshi.FromJson <methods>;
|
||||||
|
@com.squareup.moshi.ToJson <methods>;
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user