Skip to content

Choose a tag to compare

@Kashif-E Kashif-E released this 07 Aug 11:29
· 1127 commits to main since this release
f3e0394

Added

  • Lens capabilities API (#154): getCameraCapabilities() on CameraController and CameraKStateHolder returns CameraCapabilities/LensInfo — each lens's classified type, facing, zoom range, and flash — so apps can check availableDeviceTypes() before calling setPreferredCameraDeviceType(). 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 AVCaptureDeviceDiscoverySession blocks 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:camerak can 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).