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

Commit d4bde836 authored by zhidou's avatar zhidou
Browse files

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
parent 5015273f
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -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>; }