I have a public class that implements Serializable and this class have an enum variable
public class RunResult implements Serializable {
public enum ResultType {PENDING, OK, WARNING, ERROR}
after execute my ProguardTask in gradle, on my output jar I obtain a new enum class so when I try to use my output jar for my other part of the project I got some errors.
I tried using:
keep ‘public class com.xxx.yyy.zzz.utils.agent.RunResult {
public enum ResultType;
}’
to keep having the same nomenclature and not undergo modifications but proguard generate the new enum class:
public enum RunResult$ResultType {
PENDING,
OK,
WARNING,
ERROR;
private RunResult$ResultType() {
}
}
so when I use this output Jar the application got type errors (because names changed [ResultType to RunResult$ResultType])
Thanks!!
PD: I’m ussing proguard 7.1.0