I am using the method suggested here to get rid of the Logs in my release APK. I use the following config for that:
-dontskipnonpubliclibraryclasses
-dontobfuscate
-forceprocessing
-optimizationpasses 5
-keepattributes
-assumenosideeffects class android.util.Log {
public static boolean isLoggable(java.lang.String, int);
public static int v(...);
public static int i(...);
public static int w(...);
public static int d(...);
public static int e(...);
}
This works when it comes to my own Log calls. However, I link to a library in my project, which is also in my Workspace. As far as I know this config should apply for the linked library too. But the Log.d(...)
outputs from the linked library are still there when I run the release APK on my USB connected device. I cannot get them stripped out. Why not?
BTW, I use the right click -> android tools -> Export signed APK method in Eclipse ADT bundle for generating the release APK.