public class AssetsHelper {
@StringDef({ScreenDensity.XHDPI,ScreenDensity.HDPI, ScreenDensity.XXHDPI})
@Retention(RetentionPolicy.SOURCE)
public @interface ScreenDensity {
String HDPI = "HDPI";
String XHDPI = "XHDPI";
String XXHDPI = "XXHDPI";
}
}
When I use the default pro-guard protection rule in the Android SDK tools folder, I get an error for ScreenDensity. What is a protection rule to keep this StringDef ScreenDensityfrom obfuscation?
source
share