Is there a way to force Eclipse to always run proguard before dex'ing when trying to launch an Android app? for example, is it somehow easy to insert it as an assembly step?
By default, it will work when exporting, but I need it to always start, even when, for example, just doing the usual โRunโ or โDebugโ from the menu / keyboard.
For context, the reason this is relevant is because I run โtoo many opcodes / without extended opcodesโ (http://code.google.com/p/android/issues/detail?id=26203) with my build in Eclipse. This is not a problem to build ant, because they run proguard, which removes all unused code. So far, I manually removed unused things from third-party dependencies, but this is somewhat ridiculous.
Also, as a side benefit, this should speed up my build significantly, because shrink-only run concessions are a way, a path faster than dex'ing, and it removes most of the code that should be dex'ed.
source share