commit | 7a9acce4ecd84b205a0b816b8f2ae05e3569c00b | [log] [tgz] |
---|---|---|
author | Colin Cross <ccross@android.com> | Mon Aug 26 14:22:02 2019 -0700 |
committer | Colin Cross <ccross@android.com> | Thu Sep 05 14:42:14 2019 -0700 |
tree | 474747bce5e8055fb8559566d427c07860514ab5 | |
parent | 4c7154976342b7903fad20e00a5eaaa7ca0f193e [diff] [blame] |
Keep proguard fields for lite runtime The lite proto runtime uses reflection to access fields based on the names in the schema, keep all the fields. Bug: 117607748 Bug: 140062984 Test: m checkbuild Change-Id: I39bc7d28f619dd2ccaee603e4d407aa7ad33f534 Merged-In: I39bc7d28f619dd2ccaee603e4d407aa7ad33f534
diff --git a/core/proguard_basic_keeps.flags b/core/proguard_basic_keeps.flags index a0f577d..28ec2d0 100644 --- a/core/proguard_basic_keeps.flags +++ b/core/proguard_basic_keeps.flags
@@ -72,3 +72,7 @@ # Less spammy. -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>; }