Search code examples
androidandroid-studioproguardaar

Where can I find Proguard rules in the AAR?


I'm trying to include proguard rules in the AAR of my library.

To my knowledge the consumerProguardFiles in the buildTypes of the build.gradle file should provide proguard rules in the aar.

buildTypes {
            debug {}
            release {
                consumerProguardFiles 'proguard-rules.pro'
            }
        }

Is there a way to see the proguard rules of my library when I import it into an android application? Currently the aar only contains a classes.jar file.


Solution

  • The consumer Proguard rules are added as file proguard.txt inside the aar file.