Fixed
- Android photos cropped / reduced field-of-view (#136): stills were zoomed-in vs the preview because CameraK always bound a 16:9
VideoCapturealongside the photo use case, and the sharedViewPortshrank the common field of view.VideoCaptureis now bound lazily (only while recording), so photos use the full sensor FOV. Recording-lifecycle guards added (reject double-start / lens switch mid-recording; roll back a failed start). - Android captured photo aspect ratio & orientation (#136): the saved photo now matches the preview (display-driven ViewPort + capture rotation), across all four ratios × both orientations.
- Android rotation during recording (#147): a portrait↔landscape flip mid-recording no longer tears down the recording; the rebuild is deferred to finalize.
setTargetOrientation(null)reverts to the display rotation.
Changed (behavior)
targetResolutionno longer overridesaspectRatio(Android).- Display-locked activities produce photos in that orientation.
Verified on a Galaxy S23. Maven Central: io.github.kashif-mehmood-km:camerak:1.1 (+ plugins).