Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d5442060 authored by Christoffer Adamsen's avatar Christoffer Adamsen
Browse files

Do not keep runtime invisible annotations in proguard.proguard

This updates the corresponding Android.bp file to keep the runtime invisible annotations, meaning this should be a no-op.

When RELEASE_R8_ONLY_RUNTIME_VISIBLE_ANNOTATIONS is enabled, keep_runtime_invisible_annotations will become a no-op, which should lead to all runtime invisible annotations being stripped from this build.

Bug: 387958004
Change-Id: Ie4869e27ff5d6839e2565178a1765aad4ce661dc
Test: existing
parent ccc9a84f
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -15,6 +15,7 @@ android_app {
    export_package_resources: true,
    privileged: true,
    optimize: {
        keep_runtime_invisible_annotations: true,
        proguard_flags_files: ["proguard.proguard"],
    },
}
+3 −1
Original line number Diff line number Diff line
-keepparameternames
-keepattributes Exceptions,InnerClasses,Signature,Deprecated,
                SourceFile,LineNumberTable,*Annotation*,EnclosingMethod
                SourceFile,LineNumberTable,EnclosingMethod,
                RuntimeVisibleAnnotations,RuntimeVisibleParameterAnnotations,
                RuntimeVisibleTypeAnnotations,AnnotationDefault

-keep public class * {
    public protected *;