My proguard configuration
-assumenosideeffects class android.util.Log { public static *** d(...); public static *** w(...); public static *** v(...); public static *** i(...); public static *** e(...); } and
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' It does removes most of the logs. However for some logs, it produces strange output as shown below. As you can notice, the Log.d has been replaced by some redundant code.
public void MyFunction(int param1, String param2) { Log.d(TAG, "MyFunction: " + param1 + " : " + param2); ...some code... } This is transformed to
public final void a(int paramInt, String paramString) { new StringBuilder("MyFunction: ").append(paramInt).append(" : ").append(paramString); ... some code ... } }
Any idea what's wrong and how to solve this?
Thanks