Mark Rosenberg
Mark Rosenberg

Reputation: 153

Does Eclipse always run Proguard on Android release builds even if project.properties doesn't have a proguard entry?

My app runs differently when run from Eclipse in debug mode, or when run from an exported signed application. I have not been specifying any proguard config in project.properties. Am I still getting some default proguard optimizations and obfuscations? Does proguard always run when exporting a signed binary using the generic config in the tools directory of the sdk?

Upvotes: 0

Views: 521

Answers (1)

Kumar Bibek
Kumar Bibek

Reputation: 9117

Nope. You have to enable it. It's not enabled by default. http://developer.android.com/tools/help/proguard.html

To enable ProGuard so that it runs as part of an Ant or Eclipse build, set the proguard.config property in the /project.properties file. The path can be an absolute path or a path relative to the project's root.

Upvotes: 1

Related Questions