on-internet
← Community

Is it possible to Proguard an Android library module, but not the application module?

Stack Overflow ·

I'm hoping somebody can answer what I think is a basic Gradle/Proguard question. I have a very basic Android project. This project contains the main app module, named app, and a library module for the Android Support libraries, named AndroidSupport. I wish to run Proguard exclusively on AndroidSupport (i.e. NOT on the overall application) because I'm having trouble running instrumentation tests on the application when it is Proguard-ed. My hope is that I can minify AndroidSupport on its own so that I don't need to Proguard my application code (and thus, avoid the problem of tests not running).

Comments

Sign in or sign up to comment and upvote.

No comments yet.