Why fragments and views doesn't obfuscate?

99
March 08, 2021, at 06:00 AM

Although Fragment and View classes aren't android MainComponent and no reference of them in AndroidManifest.xml, but classes that extends Fragment or View don't change their name/package when minify is enabled and Proguard is working well.

Why they don't obfuscate?

PS1: The other codes obfuscate completely (change name/package/methods/attributes)

PS2: The above classes just obfuscate their methods and attributes. (Not name and package)

Answer 1

Why they don't obfuscate?

They are frequently referenced by strings using reflection, such as in layout, menu, and navigation resources. If ProGuard renamed them, those strings would be invalid, and your app would crash. Hence, the default rules are set up to keep the names of those classes.

READ ALSO
How to get width of div while its content isn't yet called - with .html()

How to get width of div while its content isn't yet called - with .html()

I saw similar or identical questions but none of these allow me to solve my issueI read that a bug exist using

139
How can an element append into an empty array in java? [duplicate]

How can an element append into an empty array in java? [duplicate]

What I trying to do is creating an empty array such as

167
Can I obtain the parameters of the website using Brython?

Can I obtain the parameters of the website using Brython?

I am currently trying to use Brython for the website I am making, but I cannot get the data from the user for my program

40