java - Any way to remove logging calls without using ProGuard optimization? -
i have wrapper class making log calls during development. makes easy turn logging on or off @ given time (plus other nifty features). used specific proguard optimization remove class during release, removed calls class's static methods (so no log strings left behind).
unfortunately because of this, have disable proguard's optimization feature. while can turn off logging, of log strings still visible in resulting apk, , unless i'm missing something, there no other way in proguard remove them.
is there other way remove these strings when building release package in eclipse gui? (not ant)
i don't know string literals etc. simulate ifdef debug statement similar this may trivial if can wrap affected inner class/method/var's of debugging class in such statement.
apparently compiler removes finds in block more or less dead code, or have read, never checked out though.
Comments
Post a Comment