I have a Gradle app with 1 library aar project and few flavours, I am trying to implement proguard for library project.
I have declared proguard-rules.pro file as well as proguard-library.pro file. I have minifyenabled true, useproguard true but Proguard does not seem to work. I am using Android studio 2.1.2 with a gradle wrapper 2.10.
I also followed steps from the link below but did not work, Proguard ignores config file of library
Can someone help to get proguard to run for my library aar project.
Edited: I am just testing if proguard works for debug or not, My gradle file is as below:
Edited debug code below:
defaultConfig {
proguardFiles 'proguard-library.pro'
consumerProguardFiles 'proguard-rules.pro'
...
...
}
buildTypes{
debug {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
....
...
}
}