Repository navigation
Added
- Lens capabilities API (#154):
getCameraCapabilities()onCameraControllerandCameraKStateHolderreturnsCameraCapabilities/LensInfo— each lens's classified type, facing, zoom range, and flash — so apps can checkavailableDeviceTypes()before callingsetPreferredCameraDeviceType(). Available on Android, iOS, and Desktop.
Fixed
- Android ultra-wide / telephoto / macro selection (#154): rewritten from raw-focal-length filters to snapshot-based selection. Lenses are enumerated via Camera2 including physical sub-lenses of logical multi-cameras (
physicalCameraIds, API 28+ guarded; minSdk stays 21), classified by 35mm-equivalent focal length (≤20mm ultra-wide, ≥70mm telephoto) with crop-pseudo-lens dedup — no more fabricated telephoto on 2-lens devices like the Pixel 7. Binding pins the physical lens on every rebind path (lens toggle, device-type switch, analyzer register/unregister, video start/stop). - Mac Catalyst crash: only supported metadata object types are assigned.
Changed
- iOS consolidates its duplicated
AVCaptureDeviceDiscoverySessionblocks into one helper; Desktop reports a single default lens. - Ships the Google Play SDK Console ownership verification token inside the AAR and the root artifact, so
io.github.kashif-mehmood-km:camerakcan be claimed in the SDK Console. - Release workflow runs on
macos-15.
No public API breaks, no new dependencies, CameraX stays at 1.5.1.
Maven Central: io.github.kashif-mehmood-km:camerak:1.2 (+ all plugins at 1.2).