Quantcast
Viewing latest article 27
Browse Latest Browse All 32

Answer by Zakhar Rodionov for How to remove all debug logging calls before building the release version of an Android app?

Easy with kotlin, just declare a few top level functions

val isDebug: Boolean    get() = BuildConfig.DEBUGfun logE(tag: String, message: String) {    if (isDebug) Log.e(tag, message)}fun logD(tag: String, message: String) {    if (isDebug) Log.d(tag, message)}

Viewing latest article 27
Browse Latest Browse All 32

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>