我正在尝试使用android proguard混淆TypeDef。
@Retention(RetentionPolicy.SOURCE)
@IntDef({NumberId.NUMBER_ONE, NumberId.NUMBER_TWO, NumberId.NUMBER_THREE, NumberId.NUMBER_FOUR})
public @interface NumberId {
int NUMBER_ONE = 1;
int NUMBER_TWO = 2;
int NUMBER_THREE = 3;
int NUMBER_FOUR = 4;
}
我正在使用的proguard保持不变
-keepattributes *Annotation*
-keepclassmembers class ** {
@<package_name>.NumberId public *;
}