Skip to content

Refactor Pica into domain-specific modules - #167

Open
sameer wants to merge 1 commit into
mainfrom
refactor
Open

sameer wants to merge 1 commit into
mainfrom
refactor

Conversation

@sameer

@sameer sameer commented Nov 23, 2026

Copy link
Copy Markdown
Collaborator

Split Pica up into specific modules. The behavior and APIs remain unchanged.

Split Pica up into specific modules. The behavior and APIs remain unchanged.
@sameer
sameer requested a review from AlpineOolong November 23, 2026 20:38

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request refactors the codebase by modularizing the large device.rs and lib.rs files into smaller, focused submodules such as capabilities.rs, core.rs, session_config.rs, session_control.rs, vendor_android.rs, data_transfer.rs, dl_tdoa.rs, and ranging.rs. This significantly improves code organization and maintainability. Feedback on the changes highlights several unused imports (pdl_runtime::Packet and app_config::AppConfig) across multiple files that can be safely removed, and suggests restricting the visibility of several fields in Session to pub(crate) to enforce better encapsulation.

Comment thread src/lib.rs Resolved
Comment thread src/lib.rs Resolved
Comment thread src/data_transfer.rs Resolved
Comment thread src/dl_tdoa.rs Resolved
Comment thread src/ranging.rs Resolved
Comment thread src/device/session_config.rs Resolved
Comment thread src/session.rs Resolved
@sameer
sameer added this pull request to stack #169 November 23, 2026 21:46
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.

1 participant