How to disable AdMob logs?

与世无争的帅哥 提交于 2020-01-15 03:52:08

问题


I understood that it's not good practice to publish an app with logs, so i disabled all my log calls.

Now AdMob logs every time an ad is displayed, How can i cancel that? i don't seem to find any information about this topic in the documentation, and i've read that you can use ProGuard but that seems like a bad solution.

Isn't there someway to disable 3rd party logs?


回答1:


Luckily this has already been answered. The best thing to do is simply turn on proguard in your application.

Turn on Proguard: Turning Proguard On/Off Using Properties

Then simply add this to the proguard.cfg here:

Add to proguard.cfg: Remove all debug logging calls before publishing: are there tools to do this?

One Proguard is on and you add that to the proguard.cfg, you can simply export the signed application and it will be gone. I just tested this yesterday.

Regards,



来源:https://stackoverflow.com/questions/11108078/how-to-disable-admob-logs

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!