diff --git a/gson/src/main/resources/META-INF/proguard/gson.pro b/gson/src/main/resources/META-INF/proguard/gson.pro index f9eb83e849..8f5a69b30f 100644 --- a/gson/src/main/resources/META-INF/proguard/gson.pro +++ b/gson/src/main/resources/META-INF/proguard/gson.pro @@ -22,7 +22,6 @@ # Keep class TypeToken (respectively its generic signature) if present -if class com.google.gson.reflect.TypeToken -keep,allowobfuscation class com.google.gson.reflect.TypeToken -#-keep class com.google.gson.reflect.TypeToken { *; } # Keep any (anonymous) classes extending TypeToken -keep,allowobfuscation class * extends com.google.gson.reflect.TypeToken diff --git a/shrinker-test/common.pro b/shrinker-test/common.pro index ec34c2eef9..e4444aa3c4 100644 --- a/shrinker-test/common.pro +++ b/shrinker-test/common.pro @@ -37,6 +37,4 @@ } -keepclassmembernames class com.example.ClassWithVersionAnnotations { ; -} - --dontobfuscate +} \ No newline at end of file diff --git a/shrinker-test/proguard.pro b/shrinker-test/proguard.pro index c80942c121..9b872b5d3c 100644 --- a/shrinker-test/proguard.pro +++ b/shrinker-test/proguard.pro @@ -12,3 +12,6 @@ -keepclassmembernames class com.example.NoSerializedNameMain$TestClassNotAbstract { ; } +-keepclassmembernames class com.example.NoSerializedNameMain$TestClassWithoutDefaultConstructor { + ; +} \ No newline at end of file