Files
build_make/core/proguard/enumvalues.flags
Jared Duke 49836d05a9 Refactor global R8 enum keep rules
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
2025-11-07 23:46:18 +00:00

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);
}