Quantcast
Channel: How to remove all debug logging calls before building the release version of an Android app? - Stack Overflow
Viewing all articles
Browse latest Browse all 32

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

$
0
0

Why not just do

if(BuildConfig.DEBUG)
  Log.d("tag","msg");

? No additional libraries needed, no proguard rules which tend to screw up the project and java compiler will just leave out bytecode for for this call when you make release build.


Viewing all articles
Browse latest Browse all 32

Trending Articles



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