0

I want to use Proguard for application. I am using com.melnykov.fab.FloatingActionButton as library so I want to exclude the same.

I have enabled the proguard in my build.gradle:

buildTypes {
    release {
        minifyEnabled true
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}

And in proguard-rules.pro file, I added below line:

-keepclassmembers class com.melnykov.fab.FloatingActionButton {
     public *;
 }

But the library is getting obfuscated and in the apk of my application, actual code and obfuscated code are both present.

Can someone tell me if I am missing something in the proguard-rules.pro?

Blo
  • 11,903
  • 5
  • 45
  • 99
karsas
  • 1,231
  • 4
  • 12
  • 24

0 Answers0