Is there a shortcut to remove all Log statements from an Android project made in Eclipse?

I want to delete all the operators Logthat I added when creating my Android project. This is because I am sending the final draft to my client.

Is there a shortcut that will automatically find all the operators Logand delete them?

This would save labor from moving to individual operators Logand then deleting them.

+3
source share
3 answers

Use Eclipse, enter android.util.Log, place the cursor on the word Logand press ctrl + shift + g or cmd + shift + g to find all references to it.

+6
source

, ProGuard . . : ?

+4

build.gradle

buildTypes {release {minifyEnabled true proguardFiles getDefaultProguardFile ('proguard-android-optimize.txt'), 'proguard-rules.pro'}

proguard-rules.pro

-assumenosideeffects class android.util.Log {*; }

0
source

All Articles