android-log

How to remove all debug logging calls before building the release version of an Android app?

删除回忆录丶 提交于 2019-11-26 05:40:30
问题 According to Google, I must \" deactivate any calls to Log methods in the source code \" before publishing my Android app to Google Play. Extract from section 3 of the publication checklist: Make sure you deactivate logging and disable the debugging option before you build your application for release. You can deactivate logging by removing calls to Log methods in your source files. My open-source project is large and it is a pain to do it manually every time I release. Additionally, removing