K.R.
K.R.

Reputation: 412

What ProguardRules to add after migrating to AndroidX

I want to be able to find a mention on the internet on whether we should add some particular new ProguardRules after having migrated to AndroidX

Upvotes: 0

Views: 1069

Answers (2)

Ramesh Yankati
Ramesh Yankati

Reputation: 1217

That depends on the library which are being used by your apps.Recently I had to add the following config to my progaurd file to fix the progaurd error.

 -keep public class * extends androidx.core.app.ActivityCompat
 -dontnote androidx.renderscript.**
 -dontwarn androidx.renderscript.**
 -dontwarn androidx.core.app.ActivityCompat

Upvotes: 1

2hamed
2hamed

Reputation: 9047

Nope, no particular rule is need for AndroidX unless you're getting errors upon building with proguard.

Upvotes: 3

Related Questions