BTW, this method no longer works with the new scheme of using Proguard.  
Anyone  know why?

On Wednesday, March 9, 2011 5:29:50 AM UTC-8, Marcin Orlowski wrote:
>
> Hi,
>
> I try to strip all log calls from release app using proguard
> (-assumenosideeffects) i noticed not all is removed. Some cases are
> clearly understandable to left some traces i.e. Log.i("foo" + bar());
> one, but I wonder what I can do (except manually comenting it out)
> this:
>
> if( ... )
> {
>   ... some code ...
> } else {
>   Log.d("foo");
> }
>
> To my understanding there's no reason to not remove Log call, but it
> remains there. My first thought was PG got some sort of problems
> stripping the only code from the else cause, but I spotted it happened
> sometimes when I got some code (method call) around too. For smaller
> apps I can track these left-overs down by hand but for bigger is pure
> time consuming process to reverse own app and go thru smali code.
> Anyone got idea what could I can do to get above sorted
>
> -- 
> Regards,
> Marcin Orlowski
>
>
On Wednesday, March 9, 2011 5:29:50 AM UTC-8, Marcin Orlowski wrote:
>
> Hi,
>
> I try to strip all log calls from release app using proguard
> (-assumenosideeffects) i noticed not all is removed. Some cases are
> clearly understandable to left some traces i.e. Log.i("foo" + bar());
> one, but I wonder what I can do (except manually comenting it out)
> this:
>
> if( ... )
> {
>   ... some code ...
> } else {
>   Log.d("foo");
> }
>
> To my understanding there's no reason to not remove Log call, but it
> remains there. My first thought was PG got some sort of problems
> stripping the only code from the else cause, but I spotted it happened
> sometimes when I got some code (method call) around too. For smaller
> apps I can track these left-overs down by hand but for bigger is pure
> time consuming process to reverse own app and go thru smali code.
> Anyone got idea what could I can do to get above sorted
>
> -- 
> Regards,
> Marcin Orlowski
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to