[英]Run android studio app in debug mode without ads?
Is there an easy way to deactivate ads in debug mode?有没有一种简单的方法可以在调试模式下停用广告? I'm getting annoyed from my own test ads while building my app:DI am using IronSource mediation.
在构建我的应用程序时,我对自己的测试广告感到恼火:DI 正在使用 IronSource 中介。
Just add an if
statement to check if you're in the debug mode or release mode:只需添加一个
if
语句来检查您是处于调试模式还是发布模式:
if (!BuildConfig.DEBUG) {
showAds();
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.