## 0.7.5+1

* Fix exposure offset slider freezing camera preview and fix setExposureOffset return value.

## 0.7.5

* Adds support for custom video output path in video recording.
* Updates minimum supported SDK version to Flutter 3.41/Dart 3.11.

## 0.7.4+8

* Bumps cameraxVersion from 1.6.1 to 1.6.2.
* Removes the explicit `androidx.concurrent:concurrent-futures` dependency
  workaround, as camera-core 1.6.2 includes an
  upstream fix that makes it unnecessary.

## 0.7.4+7

* Updates pigeon dev_dependency to ^27.3.2 for analyzer 14 compatibility.

## 0.7.4+6

* Adds explicit `androidx.concurrent:concurrent-futures:1.2.0` dependency to fix
  `compileDebugJavaWithJavac` failing with "class file for
  androidx.concurrent.futures.CallbackToFutureAdapter not found" when
  `camera-core`'s Jspecify type annotations are resolved during compilation.
  
## 0.7.4+5

* Fixes a leaked thread per capture by dispatching the `takePicture` result callback on the main
  executor.

## 0.7.4+4

* Fix `NullPointerException` when disposing camera during active video recording.

## 0.7.4+3

* Updates `ResolutionPreset.max` to prefer higher resolution over capture rate
  for CameraX `ResolutionSelector` use cases on Android.

## 0.7.4+2

* Bumps cameraxVersion from 1.6.0 to 1.6.1.
* Updates androidx.camera:camera-core from 1.6.0 to 1.6.1.
* Updates androidx.camera:camera-camera2 from 1.6.0 to 1.6.1.
* Updates androidx.camera:camera-lifecycle from 1.6.0 to 1.6.1.
* Updates androidx.camera:camera-video from 1.6.0 to 1.6.1.

## 0.7.4+1

* Fixes a `StateError` ("Bad state: No element") in `setFocusMode(FocusMode.auto)`
  when the current focus and metering action has no auto-focus points.

## 0.7.4

* Adds `setJpegImageQuality` for controlling JPEG compression quality.

## 0.7.3

* Fixes `videoBitrate` configuration being ignored during video recording.

## 0.7.2+1

* Migrates to Built-in Kotlin to support AGP 9.
* Updates minimum supported SDK version to Flutter 3.44/Dart 3.12.

## 0.7.2

* Bumps camerax_version from 1.5.3 to 1.6.0.

## 0.7.1+2

* Fixes dartdoc comments that accidentally used HTML.

## 0.7.1+1

* Updates build files from Groovy to Kotlin.

## 0.7.1

* Removes outdated restrictions against concurrent camera use cases.

## 0.7.0+1

* Updates example to demonstrate correct exception handling for async return statements, ensuring exceptions thrown during return within try blocks are properly caught as per [dart-lang/sdk#44395](https://github.com/dart-lang/sdk/issues/44395).

## 0.7.0

* Adds video stabilization.

## 0.6.30

* Bump camerax_version from 1.5.2 to 1.5.3.

## 0.6.29

* Modifies lens direction logic to request the value from CameraX directly versus manual detection.

## 0.6.28

* Adds more descriptive error to camera error stream when image capture fails.

## 0.6.27

* Changes `availableCameras` to get the camera name from `Camera2CameraInfo.getCameraId`.

## 0.6.26+3

* Bumps kotlin_version to 2.3.0.

## 0.6.26+2

* Updates pigeon generation to prevent crash when objects call to Dart after a hot restart.

## 0.6.26+1

* Bumps camerax_version from 1.5.1 to 1.5.2.

## 0.6.26

* Removes internal native library Dart proxy.

## 0.6.25+1

* Bumps kotlin_version to 2.2.21.

## 0.6.25

* Adds support for `MediaSettings.fps` for camera preview, image streaming, and video recording.

## 0.6.24+4

* Allows for video recording without audio when permission RECORD_AUDIO is denied.

## 0.6.24+3

* Bumps com.android.tools.build:gradle from 8.12.1 to 8.13.1.

## 0.6.24+2

* Updates to Pigeon 26.

## 0.6.24+1

* Fixes crash in `DeviceOrientationManager` caused by `UnsupportedOperationException` when `getDisplay()` is called on a null or destroyed Activity during rotation.

## 0.6.24

* Change plugin to assume mp4 format for capture videos.

## 0.6.23+5

* Fixes `IllegalArgumentException` that could occur during image streaming when using NV21.

## 0.6.23+4

* Updates examples to use the new RadioGroup API instead of deprecated Radio parameters.

## 0.6.23+3

* Bumps camerax_version from 1.5.0 to 1.5.1.

## 0.6.23+2

* Updates Java compatibility version to 17 and minimum supported SDK version to Flutter 3.35/Dart 3.9.

## 0.6.23+1

* Resolves Gradle 9 deprecations.

## 0.6.23

* Converts NV21-compatible streamed images to NV21 when requested. In doing so,
this plugin should now be compatible with [google_ml_kit_flutter](https://github.com/flutter-ml/google_ml_kit_flutter/tree/master).

## 0.6.22

* Implements `setDescriptionWhileRecording`.

## 0.6.21+2

* Bumps com.google.guava:guava from 33.4.8-android to 33.5.0-android.

## 0.6.21+1

* Updates to stable version of `androidx.camera` 1.5.

## 0.6.21

* Implements NV21 support for image streaming.

## 0.6.20+3

* Bumps com.google.guava:guava from 33.4.0-android to 33.4.8-android.

## 0.6.20+2

* Bumps com.android.tools.build:gradle to 8.12.1 and kotlin_version to 2.2.10.

## 0.6.20+1

* Updates kotlin version to 2.2.0 to enable gradle 8.11 support.

## 0.6.20

* Fixes pausing and resuming the camera preview.
* Updates minimum supported SDK version to Flutter 3.32.8/Dart 3.8.1.

## 0.6.19+1

* Fixes incorrect camera switching by selecting a camera via its CameraInfo.

## 0.6.19

* Changes target rotation of captured images to current default display rotation to fix captured
  photo orientation to upright.

## 0.6.18+3

* Fixes incorrect camera preview mirroring for front cameras of devices using the Impeller backend.

## 0.6.18+2

* Fixes premature garbage collection of native objects when app is under memory pressure.

## 0.6.18+1

* Makes Java style improvements.

## 0.6.18

* Adds support for the `MediaSettings.enableAudio` setting, which determines whether or not audio is
  recorded during video recording.

## 0.6.17+1

* Replaces deprecated `onSurfaceDestroyed` with `onSurfaceCleanup`.

## 0.6.17

* Replaces `BroadcastReceiver` usage with an `OrientationEventListener` to detect changes in device
  orientation to fix issue where some devices do not report changes in device configuration if it
  is rotated between the same sort of orientation (landscape/portrait).

## 0.6.16

* Fixes incorrect camera preview rotation for landscape-oriented devices.
* Fixes regression where `onDeviceOrientationChanged` was not triggering with an initial orientation
  after calling `createCameraWithSettings`.

## 0.6.15+2

* Updates pigeon generated code to fix `ImplicitSamInstance` and `SyntheticAccessor` Kotlin lint
  warnings.

## 0.6.15+1

* Ensures DeviceOrientationManager is stopped on dispose.

## 0.6.15

* Updates internal API wrapper to use ProxyApis.

## 0.6.14+1

* Updates compileSdk 34 to flutter.compileSdkVersion.

## 0.6.14

* Fixes incorrect camera preview rotation.

## 0.6.13

* Adds API support query for image streaming.

## 0.6.12

* Suppresses deprecation and removal warnings for
  `TextureRegistry.SurfaceProducer.onSurfaceDestroyed`.
* Removes logic added to correct the rotation of the camera preview, since it is no longer required.

## 0.6.11

* Replaces deprecated Android embedder APIs (`onSurfaceCreated` -> `onSurfaceAvailable`).
* Updates minimum supported SDK version to Flutter 3.22/Dart 3.4.

## 0.6.10+3

* Bumps com.google.guava:guava from 33.3.1-android to 33.4.0-android.

## 0.6.10+2

* Bumps camerax_version from 1.3.4 to 1.4.1.

## 0.6.10+1

* Removes nonnull annotation from MeteringPointHostApiImpl#getDefaultPointSize.

## 0.6.10

* Removes logic that explicitly removes `READ_EXTERNAL_STORAGE` permission that may be implied
  from `WRITE_EXTERNAL_STORAGE` and updates the README to tell users how to manually
  remove it from their app's merged manifest if they wish.

## 0.6.9+2

* Updates Java compatibility version to 11.

## 0.6.9+1

* Bumps `com.google.guava:guava` from `33.3.0` to `33.3.1`.

## 0.6.9

* Corrects assumption about automatic preview correction happening on API >= 29 to API > 29,
  based on the fact that the `ImageReader` Impeller backend is not used for the most part on
  devices running API 29+.

## 0.6.8+3

* Removes dependency on org.jetbrains.kotlin:kotlin-bom.
* Updates minimum supported SDK version to Flutter 3.24/Dart 3.5.

## 0.6.8+2

* Marks uses of `Camera2Interop` with `@OptIn` annotation.

## 0.6.8+1

* Re-lands support for Impeller.

## 0.6.8

* Updates Guava version to 33.3.0.

## 0.6.7+2

* Updates lint checks to ignore NewerVersionAvailable.

## 0.6.7+1

* Updates README to remove references to `maxVideoDuration`, as it was never
  visible to app-facing clients, nor was it implemented in `camera_android`.

## 0.6.7

* Updates AGP version to 8.5.0.

## 0.6.6

* Adds logic to support building a camera preview with Android `Surface`s not backed by a `SurfaceTexture`
  to which CameraX cannot not automatically apply the transformation required to achieve the correct rotation.
* Adds fix for incorrect camera preview rotation on naturally landscape-oriented devices.
* Updates example app's minimum supported SDK version to Flutter 3.22/Dart 3.4.

## 0.6.5+6

* Updates Guava version to 33.2.1.
* Updates CameraX version to 1.3.4.

## 0.6.5+5

* Reverts changes to support Impeller.

## 0.6.5+4

* [Supports Impeller](https://docs.flutter.dev/release/breaking-changes/android-surface-plugins).

## 0.6.5+3

* Updates minimum supported SDK version to Flutter 3.22/Dart 3.4.
* Adds notes to `README.md` about allowing image streaming in the background and the required
  `WRITE_EXTERNAL_STORAGE` permission specified in the plugin to allow writing photos and videos to
  files.

## 0.6.5+2

* Update to latest stable camerax `1.3.3`.
* Updates minimum supported SDK version to Flutter 3.16/Dart 3.2.

## 0.6.5+1

* Updates `README.md` to reflect the fact that the `camera_android_camerax` camera plugin implementation
  is the endorsed Android implementation for `camera: ^0.11.0`.

## 0.6.5

* Modifies `stopVideoRecording` to ensure that the method only returns when CameraX reports that the
  recorded video finishes saving to a file.
* Modifies `startVideoCapturing` to ensure that the method only returns when CameraX reports that
  video recording has started.
* Adds empty implementation for `setDescriptionWhileRecording` and leaves a todo to add this feature.

## 0.6.4+1

* Adds empty implementation for `prepareForVideoRecording` since this optimization is not used on Android.

## 0.6.4

* Prevents usage of unsupported concurrent `UseCase`s based on the capabiliites of the camera device.

## 0.6.3

* Shortens default interval that internal Java `InstanceManager` uses to release garbage collected weak references to
  native objects.
* Dynamically shortens interval that internal Java `InstanceManager` uses to release garbage collected weak references to
  native objects when an `ImageAnalysis.Analyzer` is set/removed to account for increased memory usage of analyzing
  images that may cause a crash.

## 0.6.2

* Adds support to control video FPS and bitrate. See `CameraController.withSettings`.

## 0.6.1+1

* Moves integration_test dependency to dev_dependencies.

## 0.6.1

* Modifies resolution selection logic to use an `AspectRatioStrategy` for all aspect ratios supported by CameraX.
* Adds `ResolutionFilter` to resolution selection logic to prioritize resolutions that match
  the defined `ResolutionPreset`s.

## 0.6.0+1

* Updates `README.md` to encourage developers to opt into this implementation of the camera plugin.

## 0.6.0

* Implements `setFocusMode`, which makes this plugin reach feature parity with camera_android.
* Fixes `setExposureCompensationIndex` return value to use index returned by CameraX.

## 0.5.0+36

* Implements `setExposureMode`.

## 0.5.0+35

* Modifies `CameraInitializedEvent` that is sent when the camera is initialized to indicate that the initial focus
  and exposure modes are auto and that developers may set focus and exposure points.

## 0.5.0+34

* Implements `setFocusPoint`, `setExposurePoint`, and `setExposureOffset`.

## 0.5.0+33

* Fixes typo in `README.md`.
* Updates minimum supported SDK version to Flutter 3.13/Dart 3.1.

## 0.5.0+32

* Removes all remaining `unawaited` calls to fix potential race conditions and updates the
  camera state when video capture starts.

## 0.5.0+31

* Wraps CameraX classes needed to set capture request options, which is needed to implement setting the exposure mode.

## 0.5.0+30

* Adds documentation to clarify how the plugin uses resolution presets as target resolutions for CameraX.

## 0.5.0+29

* Modifies `buildPreview` to return `Texture` that maps to camera preview, building in the assumption
  that `createCamera` should have been called before building the preview. Fixes
  https://github.com/flutter/flutter/issues/140567.

## 0.5.0+28

* Wraps CameraX classes needed to implement setting focus and exposure points and exposure offset.
* Updates compileSdk version to 34.

## 0.5.0+27

* Removes or updates any references to an `ActivityPluginBinding` when the plugin is detached
  or attached/re-attached, respectively, to an `Activity.`

## 0.5.0+26

* Fixes new lint warnings.

## 0.5.0+25

* Implements `lockCaptureOrientation` and `unlockCaptureOrientation`.

## 0.5.0+24

* Updates example app to use non-deprecated video_player method.

## 0.5.0+23

* Updates minimum supported SDK version to Flutter 3.10/Dart 3.0.
* Adds `CameraXProxy` class to test `JavaObject` creation and their method calls in the plugin.

## 0.5.0+22

* Fixes `_getResolutionSelectorFromPreset` null pointer error.

## 0.5.0+21

* Changes fallback resolution strategies for camera use cases to look for a higher resolution if neither the desired
  resolution nor any lower resolutions are available.

## 0.5.0+20

* Implements `setZoomLevel`.

## 0.5.0+19

* Implements torch flash mode.

## 0.5.0+18

* Implements `startVideoCapturing`.

## 0.5.0+17

* Implements resolution configuration for all camera use cases.

## 0.5.0+16

* Adds pub topics to package metadata.
* Updates minimum supported SDK version to Flutter 3.7/Dart 2.19.

## 0.5.0+15

* Explicitly removes `READ_EXTERNAL_STORAGE` permission that may otherwise be implied from `WRITE_EXTERNAL_STORAGE`.

## 0.5.0+14

* Wraps classes needed to implement resolution configuration for video recording.

## 0.5.0+13

* Migrates `styleFrom` usage in examples off of deprecated `primary` and `onPrimary` parameters.

## 0.5.0+12

* Wraps classes needed to implement resolution configuration for image capture, image analysis, and preview.
* Removes usages of deprecated APIs for resolution configuration.
* Bumps CameraX version to 1.3.0-beta01.

## 0.5.0+11

* Fixes issue with image data not being emitted after relistening to stream returned by `onStreamedFrameAvailable`.

## 0.5.0+10

* Implements off, auto, and always flash mode configurations for image capture.

## 0.5.0+9

* Marks all Dart-wrapped Android native classes as `@immutable`.
* Updates `CONTRIBUTING.md` to note requirements of Dart-wrapped Android native classes.

## 0.5.0+8

* Fixes unawaited_futures violations.

## 0.5.0+7

* Updates Guava version to 32.0.1.

## 0.5.0+6

* Updates Guava version to 32.0.0.

## 0.5.0+5

* Updates `README.md` to fully cover unimplemented functionality.

## 0.5.0+4

* Removes obsolete null checks on non-nullable values.

## 0.5.0+3

* Fixes Java lints.

## 0.5.0+2

* Adds a dependency on kotlin-bom to align versions of Kotlin transitive dependencies.
* Removes note in `README.md` regarding duplicate Kotlin classes issue.

## 0.5.0+1

* Update `README.md` to include known duplicate Kotlin classes issue.

## 0.5.0

* Initial release of this `camera` implementation that supports:
    * Image capture
    * Video recording
    * Displaying a live camera preview
    * Image streaming

  See [`README.md`](README.md) for more details on the limitations of this implementation.
