Do not keep runtime invisible annotations in proguard.flags am: b0f8c82e37 am: 817de4cf62
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Messaging/+/3455602 Change-Id: I874a545cfde2310b4714879d1d001c3c4f47737d Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
committed by
Automerger Merge Worker
commit
49c3d392ad
@@ -32,6 +32,7 @@ messaging_java_defaults {
|
|||||||
soong_config_variables: {
|
soong_config_variables: {
|
||||||
build_variant_eng: {
|
build_variant_eng: {
|
||||||
optimize: {
|
optimize: {
|
||||||
|
keep_runtime_invisible_annotations: true,
|
||||||
proguard_flags_files: [
|
proguard_flags_files: [
|
||||||
"proguard.flags",
|
"proguard.flags",
|
||||||
"proguard-test.flags",
|
"proguard-test.flags",
|
||||||
@@ -39,6 +40,7 @@ messaging_java_defaults {
|
|||||||
},
|
},
|
||||||
conditions_default: {
|
conditions_default: {
|
||||||
optimize: {
|
optimize: {
|
||||||
|
keep_runtime_invisible_annotations: true,
|
||||||
proguard_flags_files: [
|
proguard_flags_files: [
|
||||||
"proguard.flags",
|
"proguard.flags",
|
||||||
"proguard-release.flags",
|
"proguard-release.flags",
|
||||||
|
|||||||
@@ -14,7 +14,12 @@
|
|||||||
#
|
#
|
||||||
# Keep enough data for stack traces
|
# Keep enough data for stack traces
|
||||||
-renamesourcefileattribute SourceFile
|
-renamesourcefileattribute SourceFile
|
||||||
-keepattributes SourceFile,LineNumberTable,*Annotation*
|
-keepattributes SourceFile,
|
||||||
|
LineNumberTable,
|
||||||
|
RuntimeVisibleAnnotations,
|
||||||
|
RuntimeVisibleParameterAnnotations,
|
||||||
|
RuntimeVisibleTypeAnnotations,
|
||||||
|
AnnotationDefault
|
||||||
|
|
||||||
# Keep classes and methods that have the guava @VisibleForTesting annotation
|
# Keep classes and methods that have the guava @VisibleForTesting annotation
|
||||||
# TODO(b/373579455): Evaluate if <init> needs to be kept.
|
# TODO(b/373579455): Evaluate if <init> needs to be kept.
|
||||||
|
|||||||
Reference in New Issue
Block a user