From 8d14f1a8ef1d2f9c1237a6f48e917f0c4e391989 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B8ren=20Gjesse?= Date: Mon, 21 Aug 2023 14:12:29 +0200 Subject: [PATCH] Addressed more review comments --- gson/src/main/resources/META-INF/proguard/gson.pro | 1 - shrinker-test/common.pro | 4 +--- shrinker-test/proguard.pro | 3 +++ 3 files changed, 4 insertions(+), 4 deletions(-) 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