xref: /aosp_15_r20/external/tink/java_src/src/main/resources/META-INF/proguard/protobuf.pro (revision e7b1675dde1b92d52ec075b0a92829627f2c52a5)
1# Recently Protobuf Javalite introduced a change that relies on reflection,
2# which doesn't work with Proguard. This rule keeps the reflection usages in
3# (shaded) Protobuf classes in Tink as-is.
4# The location of this file is determined by
5# - https://developer.android.com/studio/build/shrink-code#configuration-files
6# - https://docs.bazel.build/versions/master/be/java.html#java_library.resources
7# See also:
8# - https://github.com/google/tink/issues/361
9# - https://github.com/protocolbuffers/protobuf/issues/6463
10# WARNING: the shaded package name com.google.crypto.tink.shaded.protobuf must
11# be kept in sync with jar_jar_rules.txt.
12-keepclassmembers class * extends com.google.crypto.tink.shaded.protobuf.GeneratedMessageLite {
13  <fields>;
14}
15