diff options
author | zhidou <zhidou@google.com> | 2022-07-11 20:12:24 +0000 |
---|---|---|
committer | zhidou <zhidou@google.com> | 2022-07-12 21:18:44 +0000 |
commit | d4bde8362d6738a97f5af32cde9a05d53cd88721 (patch) | |
tree | 34e08b4f5f58e4a63b2a41fa5023bc0244f33f8c | |
parent | 5015273fa33b3326cf654c7b028280a66e2b0d9e (diff) | |
download | build-d4bde8362d6738a97f5af32cde9a05d53cd88721.tar.gz |
Keep proguard fields for lite runtime of jarjared class
Some targets rename protobuf.MessageLite with jarjar rules. This change
adds keep rules to keep the fields of renamed classes.
Bug: 233746531
Test: m checkbuild.
Change-Id: I986f05455b45651749fb5f819661041d7399f683
-rw-r--r-- | core/proguard_basic_keeps.flags | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/proguard_basic_keeps.flags b/core/proguard_basic_keeps.flags index 30c2341649..54cbdccf3b 100644 --- a/core/proguard_basic_keeps.flags +++ b/core/proguard_basic_keeps.flags @@ -74,5 +74,6 @@ -dontnote # The lite proto runtime uses reflection to access fields based on the names in -# the schema, keep all the fields. --keepclassmembers class * extends com.google.protobuf.MessageLite { <fields>; } +# the schema, keep all the fields. Wildcard is used to apply the rule to classes +# that have been renamed with jarjar. +-keepclassmembers class * extends **.protobuf.MessageLite { <fields>; } |