Separate the existing enum keep rules into a standalone configuration. This allows selective inclusion based on build flags. These will be included by default via soong, until the new omission flag has ramped. Bug: 379313375 Flag: build.RELEASE_R8_OMIT_GLOBAL_ENUM_KEEPS Test: m Change-Id: I7155a572f014b929b21bce34cfd9c67235ffd890
10 lines
422 B
Plaintext
10 lines
422 B
Plaintext
# For enumeration classes, see http://proguard.sourceforge.net/manual/examples.html#enumerations
|
|
# Reflective use of enum values is discouraged in the platform.
|
|
# With R8 support for enum serialization tracing, there is even
|
|
# less of a need. Specific targets can selectively include these rules
|
|
# if necessary.
|
|
-keepclassmembers enum * {
|
|
public static **[] values();
|
|
public static ** valueOf(java.lang.String);
|
|
}
|