Skip to content

Add CameraX Skill snippets for Advanced Camera CUJs#946

Open
donovanfm wants to merge 6 commits into
android:mainfrom
donovanfm:camera-skill-snippets
Open

Add CameraX Skill snippets for Advanced Camera CUJs#946
donovanfm wants to merge 6 commits into
android:mainfrom
donovanfm:camera-skill-snippets

Conversation

@donovanfm

Copy link
Copy Markdown

These snippets will be used in conjunction with @madebymozart's migration snippets (#943) into a single CameraX skill (per the skill team's recommendation).

@snippet-bot

snippet-bot Bot commented Jun 12, 2026

Copy link
Copy Markdown

Here is the summary of changes.

You are about to add 22 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

@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 introduces a new file, CameraSkillSnippets.kt, containing various code snippets demonstrating CameraX features such as immutability, low-light extensions, external cameras, foldables, thermals, and Wear OS integration. The review feedback highlights several compilation errors and safety issues in these snippets. Specifically, it points out conflicting variable declarations, a missing suspend modifier for an asynchronous call, unresolved constants that need class prefixes, missing Context references for system service retrieval, and a potential NullPointerException from an unchecked nullable bitmap.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread camerax/src/main/java/com/example/camerax/snippets/CameraSkillSnippets.kt Outdated
Comment thread camerax/src/main/java/com/example/camerax/snippets/CameraSkillSnippets.kt Outdated
Comment thread camerax/src/main/java/com/example/camerax/snippets/CameraSkillSnippets.kt Outdated
Comment thread camerax/src/main/java/com/example/camerax/snippets/CameraSkillSnippets.kt Outdated
Comment thread camerax/src/main/java/com/example/camerax/snippets/CameraSkillSnippets.kt Outdated
Comment thread camerax/src/main/java/com/example/camerax/snippets/CameraSkillSnippets.kt Outdated
donovanfm and others added 5 commits June 12, 2026 11:48
…Snippets.kt

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
…Snippets.kt

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
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