Skip to content

Fire Mode: Rename fire-mode module to browser-mode#8574

Merged
0nko merged 2 commits into
developfrom
feature/ondrej/fire-mode-rename-modules
May 15, 2026
Merged

Fire Mode: Rename fire-mode module to browser-mode#8574
0nko merged 2 commits into
developfrom
feature/ondrej/fire-mode-rename-modules

Conversation

@0nko
Copy link
Copy Markdown
Member

@0nko 0nko commented May 15, 2026

Task/Issue URL: https://app.asana.com/1/137249556945/project/1207418217763355/task/1214778997953222?focus=true

Description

This PR replaces the fire-mode-* modules with browser-mode-* modules so that the everything related to the Browser modes can be moved there.

The browser-mode-api is added to the exception list for api->api dependence, which has already been been approved in the API proposal/tech design.

Steps to test this PR

QA-optional


Note

Medium Risk
Mostly a module/package rename, but it touches Gradle dependency wiring and DI bindings across the app; build/merge issues or missing imports are the main risk rather than behavioral changes.

Overview
Renames the fire-mode-* modules to browser-mode-* and moves the public APIs (BrowserMode, BrowserModeStateHolder, FireModeAvailability, etc.) under the new com.duckduckgo.browsermode.api namespace.

Updates app and feature modules (e.g., BrowserActivity, BrowserViewModel, DuckChat) to depend on and import from browser-mode-*, and adjusts Gradle rules to allow :browser-mode-api as an approved apiapi dependency. The browser-mode-impl build config is updated with additional AndroidX dependencies and unit-test (Robolectric/resource) support.

Reviewed by Cursor Bugbot for commit 19ab411. Bugbot is set up for automated code reviews on this repo. Configure here.

Copy link
Copy Markdown
Member Author

0nko commented May 15, 2026

Comment thread build.gradle
&& dependencyPath != ":navigation-api"
&& dependencyPath != ":js-messaging-api"
&& dependencyPath != ":browser-api"
&& dependencyPath != ":browser-mode-api"
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BrowserMode type is needed in other APIs.

Base automatically changed from feature/ondrej/fire-mode-browser-mode to develop May 15, 2026 12:29
@0nko 0nko force-pushed the feature/ondrej/fire-mode-rename-modules branch from edcf6dd to 19ab411 Compare May 15, 2026 12:36
@0nko 0nko merged commit 781b3cf into develop May 15, 2026
15 checks passed
@0nko 0nko deleted the feature/ondrej/fire-mode-rename-modules branch May 15, 2026 13:00
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