0

Why after obfuscation in androidx.navigation NavControllerViewModel renamed, but NavController don't renamed?

1 Answers1

0

R8 can give some indication as to why a certain class and/or member is still in the program after shrinking/obfuscation by adding a -whyareyoukeeping into the configuration file. -whyareyoukeeping takes a class specification like the -keep rules and will report on the classes/members matched by that class specification. E.g. for the class androidx.navigation.NavController try adding the following to the configuration file:

-whyareyoukeeping class androidx.navigation.NavController

It might not say directly why it is not renamed, but can give a good indication as of why.

sgjesse
  • 3,793
  • 14
  • 17