Up till now I am using AppCompat libraries but now I have migrated my project to AndroidX libraries.
I am stuck with proguard rules for androidx.
As you know we are using proguard rules for AppCompat as below:
-keep public class android.support.v7.widget.** { *; }
-keep public class android.support.v7.internal.widget.** { *; }
-keep public class android.support.v7.internal.view.menu.** { *; }
-keep public class * extends android.support.v4.view.ActionProvider {
public <init>(android.content.Context);
}
I have searched a lot but didn't found any proper docs for that.
Is there any update in AndroidX Proguard rules?
AppCompat already contains the ProGuard rules it needs directly in the AAR: there's no need to declare any special ProGuard rules.
Therefore, you can just remove your custom rules entirely.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With