Skip to content

[Snippet] Add CameraX migration snippet#865

Merged
yrezgui merged 8 commits intomainfrom
madebymozart/cam1-to-camx-skill
Apr 9, 2026
Merged

[Snippet] Add CameraX migration snippet#865
yrezgui merged 8 commits intomainfrom
madebymozart/cam1-to-camx-skill

Conversation

@madebymozart
Copy link
Copy Markdown
Contributor

No description provided.

@madebymozart madebymozart self-assigned this Apr 8, 2026
@madebymozart madebymozart requested review from a team, kkuan2011 and yrezgui as code owners April 8, 2026 04:24
@madebymozart madebymozart added the enhancement New feature or request label Apr 8, 2026
@snippet-bot
Copy link
Copy Markdown

snippet-bot bot commented Apr 8, 2026

Here is the summary of changes.

You are about to add 9 region tags.

This comment is generated by snippet-bot.
If you find problems with this result, please file an issue at:
https://github.com/googleapis/repo-automation-bots/issues.
To update this comment, add snippet-bot:force-run label or use the checkbox below:

  • Refresh this comment

Copy link
Copy Markdown
Contributor

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

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 introduces a set of CameraX code snippets for both Jetpack Compose and View-based implementations, covering initialization, previewing, tap-to-focus, and image capture. It also updates the CameraX dependency version to 1.6.0. Feedback includes wrapping camera initialization in a LaunchedEffect to prevent side effects during recomposition, correcting the version reference for the viewfinder-compose library which typically follows a different versioning cycle, and adding a null-safe check for the display rotation access to avoid potential NullPointerExceptions.

@yrezgui yrezgui enabled auto-merge (squash) April 8, 2026 12:59
@madebymozart madebymozart force-pushed the madebymozart/cam1-to-camx-skill branch from 92e0dcb to 39429b3 Compare April 9, 2026 14:29
@yrezgui yrezgui merged commit 82c9cc5 into main Apr 9, 2026
5 checks passed
@yrezgui yrezgui deleted the madebymozart/cam1-to-camx-skill branch April 9, 2026 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants