Where can I find Proguard rules in the AAR? Code Answer

Hello Developer, Hope you guys are doing great. Today at Tutorial Guruji Official website, we are sharing the answer of Where can I find Proguard rules in the AAR? without wasting too much if your time.

The question is published on by Tutorial Guruji team.

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.

Answer

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

We are here to answer your question about Where can I find Proguard rules in the AAR? - If you find the proper solution, please don't forgot to share this with your team members.

Related Posts

Tutorial Guruji