Categories
Mastering Development

What is the difference between consumer-rules.pro and proguard-rules.pro in Android?

I have create a module in Android to use in my main app and there seem to be two of these files
consumer-rules.pro and proguard-rules.pro.

I would like to know the folllowing things

  1. Will all of the modules code be obfuscated by the rules of the main modules pro-guard rules
    even if the module does not specify any rules?
  2. What is the difference between consumer-rules.pro and proguard-rules.pro in Android?
  3. Should i enable minifyEnabled in my module?
  4. I noticed that i can add proguard rules for my module in the main module , so does that mean
    pro-guard rules in the module are overriden in the main module?

Please advise.

Leave a Reply

Your email address will not be published. Required fields are marked *