Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Post History
If you have enum classes in the code that is being obfuscated, you need to tell proguard to skip obfuscating the values and valueOf method in your enum class, since it uses reflection internally to...
Answer
#1: Initial revision
If you have enum classes in the code that is being obfuscated, you need to tell proguard to skip obfuscating the `values` and `valueOf` method in your enum class, since it uses reflection internally to fetch the enum constants of an enum. This is how the rule would look if you are using the gradle proguard plugin ```gradle.kts keepclassmembers( """ enum * { public static **[] values(); public static ** valueOf(java.lang.String); }""" ) ```