From 9ce039d63702ecdddb2eed665eed1694f4d3e23e Mon Sep 17 00:00:00 2001 From: Tolriq Date: Wed, 17 Nov 2021 19:10:49 +0100 Subject: [PATCH] Update proguard rules for R8 3.1 R8 3.1 in full mode have made improvements to annotation removal. Current rules are not enough to ensure that JsonQualifier annotatated class are kept. See https://issuetracker.google.com/issues/206656057 --- moshi/src/main/resources/META-INF/proguard/moshi.pro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moshi/src/main/resources/META-INF/proguard/moshi.pro b/moshi/src/main/resources/META-INF/proguard/moshi.pro index ed2d9cb..63bae9c 100644 --- a/moshi/src/main/resources/META-INF/proguard/moshi.pro +++ b/moshi/src/main/resources/META-INF/proguard/moshi.pro @@ -5,7 +5,7 @@ @com.squareup.moshi.* ; } --keep @com.squareup.moshi.JsonQualifier interface * +-keep @com.squareup.moshi.JsonQualifier @interface * # Enum field names are used by the integrated EnumJsonAdapter. # values() is synthesized by the Kotlin compiler and is used by EnumJsonAdapter indirectly