Add CameraX Skill snippets for Advanced Camera CUJs#946
Conversation
There was a problem hiding this comment.
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.
…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>
These snippets will be used in conjunction with @madebymozart's migration snippets (#943) into a single CameraX skill (per the skill team's recommendation).