You're probably better off adding if (BuildConfig.DEBUG) around your
Log calls; just like the R class BuildConfig is generated at build
time and DEBUG will be set to false (as a constant) for release builds
so the compiler will strip out the full body of the logging call.
This should be a much safer change to make right before shipping (and
hopefully you don't have a million logging calls everywhere; just
strip out the most frequent ones).
-- Tor
Thanks for the advice - found the difference in tools\proguard\proguard-android.txt where optimization is turned off by default.
Will use if (BuildConfig.DEBUG) for Logging.
Are there other reports of this problem? It's working in my tests.
2012/4/19 Raphaël Moll <ra...@android.com>:
--
Xavier Ducrohet
Android SDK Tech Lead
Google Inc.
http://developer.android.com | http://tools.android.com
Please do not send me questions directly. Thanks!
The issue was on Eclipse only and was fixed in 18.0.
Are there other reports of this problem? It's working in my tests.