Merge "Do not keep runtime invisible annotations in proguard.flags" into main
diff --git a/Android.bp b/Android.bp
index a864ec3..ebec43c 100644
--- a/Android.bp
+++ b/Android.bp
@@ -41,6 +41,7 @@
     ],
 
     optimize: {
+        keep_runtime_invisible_annotations: true,
         proguard_flags_files: ["proguard.flags"],
     },
 
diff --git a/proguard.flags b/proguard.flags
index 4054922..8fbbf4b 100644
--- a/proguard.flags
+++ b/proguard.flags
@@ -50,7 +50,10 @@
 -keep interface android.support.v4.app.** { *; }
 -keep class com.actionbarsherlock.** { *; }
 -keep interface com.actionbarsherlock.** { *; }
--keepattributes *Annotation*
+-keepattributes RuntimeVisibleAnnotations,
+                RuntimeVisibleParameterAnnotations,
+                RuntimeVisibleTypeAnnotations,
+                AnnotationDefault
 
 # Required for JobIntentService
 -keep class androidx.core.app.CoreComponentFactory { *; }