wrapper!
public class L {
private static boolean BUILDCONFIG_DEBUG = false;
static {
try {
Class<?> c = Class.forName("com.helloworld.BuildConfig");
Field field = c.getField("DEBUG");
BUILDCONFIG_DEBUG = field.getBoolean(null);
} catch (NoSuchFieldException e) {
} catch (ClassNotFoundException e) {
} catch (IllegalArgumentException e) {
} catch (IllegalAccessException e) {
}
}
}
沒有留言:
張貼留言