Skip to content

Bug 2071819 - add keep rules for obfuscation. - #425

Open
pollym wants to merge 1 commit into
mozilla-firefox:autolandfrom
pollym:switch-on-obfuscation
Open

pollym wants to merge 1 commit into
mozilla-firefox:autolandfrom
pollym:switch-on-obfuscation

Conversation

@pollym

@pollym pollym commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

This is in preparation for turning on obfuscation - which will be a simple follow up "switch it on" PR, for ease of backoutability :)

This changeset adds the keep rules we will need for the app to still work ok with obfuscation on.

Anywhere that navigation arguments using mozilla defined types are used, doesn't play nicely with obfuscation because androidx navigation uses reflection under the hood. So each module now offers a set of consumer proguard rules to allow it to be obfuscated by fenix or focus.

try after rebase is here


Lando: link
Bugzilla: bug 2071819

⚠️ This pull request has 4 warnings.
🚫 This pull request has 2 blockers.

@lando-web
lando-web Bot requested review from a team October 30, 2026 10:22
@pollym
pollym force-pushed the switch-on-obfuscation branch from 3fa6a1d to 114f9e7 Compare October 30, 2026 11:49
This is in preparation for turning on obfuscation - which will be a simple follow up "switch it on" PR, for ease of backoutability :)
This changeset adds the keep rules we will need for the app to still work ok with obfuscation on.
Anywhere that navigation arguments using mozilla defined types are used, doesn't play nicely with obfuscation because androidx navigation uses reflection under the hood.
So each module now offers a set of consumer proguard rules to allow it to be obfuscated by fenix or focus.
@pollym
pollym force-pushed the switch-on-obfuscation branch from 114f9e7 to aa22a32 Compare November 2, 2026 14:02
@mozilla-code-review

Copy link
Copy Markdown

No new issues detected. This pull request is 🆗

1 similar comment
@mozilla-code-review

Copy link
Copy Markdown

No new issues detected. This pull request is 🆗

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants