R8 vs ProGuard - keep rules

285 Views Asked by At

My understanding is that R8 (Google) and ProGuard (Guardsquare) are different products that can't work together.

Now, in the latest gradle versions, Android Studio enables R8 by default and the configurations and rules for keeping classes from the optimizations are set, by default, in the proguard-rules.pro file following the same style/rules as ProGuard (which is confusing but enabled an easy migration).

  • What is your experience in disabling R8 and setting ProGuard instead with the rules that you used to have in the proguard-rules.pro?
  • Did you have to adapt them? Was it a drastic change?

In my experience, I have a working app shrinked with R8 and after disabling it and enabling ProGuard with the same rules it crashes and I have to adapt the rules.

Is/Was this your case too?

0

There are 0 best solutions below