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 th
Easy with kotlin, just declare a few top level functions
val isDebug: Boolean get() = BuildConfig.DEBUG fun logE(tag: String, message: String) { if (isDebug) Log.e(tag, message) } fun logD(tag: String, message: String) { if (isDebug) Log.d(tag, message) }