Open Bug 1987619 Opened 5 months ago Updated 5 months ago

Investigate & Remove -dontobfuscate in Proguard configuration rules

Categories

(Firefox for Android :: Performance, task)

All
Android
task

Tracking

()

People

(Reporter: segun, Unassigned)

References

(Depends on 2 open bugs, Blocks 1 open bug)

Details

We currently have -dontobfuscate in our project here:

According to Google, having this option in production builds does "significantly limit the extent of optimizations". So we would like to investigate and possibly remove it.

There are potential dependencies to consider:

  1. we do not upload our mappings to sentry - see bug 1923139
  2. I don't think we do for Socorro either
  3. do we upload to Google Play store as well?

As part of this work, we need to investigate our options here. See Google's new guide on keep rules for the effect of -dontobfuscate and how it affects things.

Note to assignee:

  1. Feel free to separate the task that does the investigation, from the one that does the implementation.
  2. It is advised that this comes in a bit later in the efforts after we have picked up lower hanging fruits.
  3. One of the things to look out for is the objects that are passed as arguments in nav_graphs. If R8 starts obfuscating those names, then we will have fatal crashes.

In regards to where our mappings are uploaded:

  • they are not uploaded to Sentry (bug 1923139) or Socorro (bug 1923142)
  • but they are automatically uploaded to Google Play.

Thanks so much Petru.

I've also linked the bug for Socorro as something this one depends on.

Depends on: 1923142
You need to log in before you can comment on or make changes to this bug.