diff options
| author | 2025-01-09 11:05:11 +0100 | |
|---|---|---|
| committer | 2025-01-09 14:02:03 +0100 | |
| commit | 8ec5f61a0293330dc75e1a68a4a887dcd0842a5a (patch) | |
| tree | 63897ecc9870cd03a3518d8cad7092877b3206d0 /python/scripts/precompile_python.py | |
| parent | 420177f2e105f119df46c008f969dd41dd28be47 (diff) | |
Add property Optimize.Keep_runtime_invisible_annotations
This adds a new property Keep_runtime_invisible_annotations to Optimize that defaults to false.
Setting this property to true is equivalent to:
-keepattributes RuntimeInvisibleAnnotations,
RuntimeInvisibleParameterAnnotations,
RuntimeInvisibleTypeAnnotations
This is only applicable when RELEASE_R8_ONLY_RUNTIME_VISIBLE_ANNOTATIONS is enabled and will be used to migrate away from keeping runtime invisible annotations (b/387958004 ).
It is not possible to branch on RELEASE_R8_ONLY_RUNTIME_VISIBLE_ANNOTATIONS in ProGuard configuration files. To migrate builds away from keeping runtime invisible annotations, this will remove any -keepattributes rules that retain runtime invisible annotations, and set the property Optimize.Keep_runtime_invisible_annotations. This way these builds continue to retain runtime invisible annotations when the feature flag RELEASE_R8_ONLY_RUNTIME_VISIBLE_ANNOTATIONS is not enabled.
Bug: 387958004
Test: existing
Change-Id: I2a2b9aba436c4f43533d3067f2abe319fadf78f1
Diffstat (limited to 'python/scripts/precompile_python.py')
0 files changed, 0 insertions, 0 deletions