Open
Bug 1987619
Opened 5 months ago
Updated 5 months ago
Investigate & Remove -dontobfuscate in Proguard configuration rules
Categories
(Firefox for Android :: Performance, task)
Tracking
()
NEW
People
(Reporter: segun, Unassigned)
References
(Depends on 2 open bugs, Blocks 1 open bug)
Details
We currently have -dontobfuscate in our project here:
- https://searchfox.org/firefox-main/rev/1f462a0092bc995d91d3f5f790c197b1bf739954/mobile/android/config/proguard/proguard.cfg#143
- https://searchfox.org/firefox-main/rev/1f462a0092bc995d91d3f5f790c197b1bf739954/mobile/android/fenix/app/proguard-rules.pro#1
- https://searchfox.org/firefox-main/rev/1f462a0092bc995d91d3f5f790c197b1bf739954/mobile/android/focus-android/app/proguard-rules.pro#4
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:
- we do not upload our mappings to sentry - see bug 1923139
- I don't think we do for Socorro either
- 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:
- Feel free to separate the task that does the investigation, from the one that does the implementation.
- It is advised that this comes in a bit later in the efforts after we have picked up lower hanging fruits.
- 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.
Comment 1•5 months ago
|
||
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.
| Reporter | ||
Comment 2•5 months ago
|
||
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.
Description
•