/**
* Toggle whether debug logging is enabled.
* <p>
* <b>WARNING:</b> Enabling this will result in excessive object allocation. This should be only
* be used for debugging Picasso behavior. Do NOT pass {@code BuildConfig.DEBUG}.
*/
@SuppressWarnings("UnusedDeclaration") // Public API.
public void setLoggingEnabled(boolean enabled) {
loggingEnabled = enabled;
}
我正在学习Picasso的源代码,我想知道为什么不能使用
BuildConfig.DEBUG
?我知道在Eclipse/ADT中有一些问题,但在Android Studio/Gradle中它是否仍然不可靠?或者还有其他原因吗?