Skip to content

Move CameraModule from com.google.jetpackcamera.di to com.google.jetpackcamera - #593

Closed
temcguir wants to merge 1 commit into
mainfrom
temcguir/move-camera-module
Closed

temcguir wants to merge 1 commit into
mainfrom
temcguir/move-camera-module

Conversation

@temcguir

@temcguir temcguir commented Oct 7, 2026

Copy link
Copy Markdown
Collaborator

Moves CameraModule out of com.google.jetpackcamera.di into the root com.google.jetpackcamera package alongside AppSettingsModule.

com.google.jetpackcamera.di contains shared dependency injection qualifiers (@DefaultDispatcher, @IODispatcher, @DefaultCoroutineScope, @DefaultFilePathGenerator) and generic app utilities (AppModule, MediaModule), whereas CameraModule binds the default app-level CameraXCameraSystem, CameraSystemRepository, and ConstraintsRepository implementations. Placing CameraModule in com.google.jetpackcamera keeps app-level camera system bindings separate from shared di qualifiers so host configurations that provide custom CameraSystem or ConstraintsRepository implementations can reuse the di package without duplicate Hilt bindings.

…ackcamera

Moves `CameraModule` out of `com.google.jetpackcamera.di` into the root `com.google.jetpackcamera` package alongside `AppSettingsModule`.

`com.google.jetpackcamera.di` contains shared dependency injection qualifiers (`@DefaultDispatcher`, `@IODispatcher`, `@DefaultCoroutineScope`, `@DefaultFilePathGenerator`) and generic app utilities (`AppModule`, `MediaModule`), whereas `CameraModule` binds the default app-level `CameraXCameraSystem`, `CameraSystemRepository`, and `ConstraintsRepository` implementations. Placing `CameraModule` in `com.google.jetpackcamera` keeps app-level camera system bindings separate from shared `di` qualifiers so host configurations that provide custom `CameraSystem` or `ConstraintsRepository` implementations can reuse the `di` package without duplicate Hilt bindings.

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

Copy link
Copy Markdown
Contributor

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 CameraModule.kt by changing its package declaration from com.google.jetpackcamera.di to com.google.jetpackcamera and adding imports for dependency injection components including DefaultCoroutineScope, DefaultDispatcher, DefaultFilePathGenerator, and IODispatcher. There are no review comments, and I have no feedback to provide.

@temcguir temcguir closed this Oct 7, 2026
@temcguir
temcguir deleted the temcguir/move-camera-module branch October 7, 2026 05:12
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