diff --git a/Tethering/proguard.flags b/Tethering/proguard.flags index 7b5ae0dfbe..2905e283bb 100644 --- a/Tethering/proguard.flags +++ b/Tethering/proguard.flags @@ -12,6 +12,11 @@ native ; } +# Ensure runtime-visible field annotations are kept when using R8 full mode. +-keepattributes RuntimeVisibleAnnotations,AnnotationDefault +-keep interface com.android.networkstack.tethering.util.Struct$Field { + *; +} -keepclassmembers public class * extends com.android.networkstack.tethering.util.Struct { *; }