diff --git a/CHANGELOG.md b/CHANGELOG.md index a8702a30..d07b8773 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,22 @@ +## v1.4.0 + +- CameraView is now completely thread-safe. All actions are asynchronous. ([#97][97]) + This has some breaking drawbacks. Specifically, the `get` methods (e.g., `getWhiteBalance`) might + not return the correct value while it is being changed. So don't trust them right after you have changed the value. + Instead, always check the `CameraOptions` to see if the value you want is supported. +- Added error handling ([#97][97]) in `CameraListener.onCameraError(CameraException)`. + At the moment, all exceptions there are unrecoverable. When the method is called, the camera is showing + a black preview. This is a good moment to show an error dialog to the user. + You can also try to `start()` again but that is not guaranteed to work. +- Long requested ability to set the picture output size ([#99][99]). Can be done through + `CameraView.setPictureSize()` or through new XML attributes starting with `cameraPictureSize`. + Please refer to docs about it. +- Deprecated `toggleFacing`. It was unreliable and will be removed. +- Deprecated `getCaptureSize`. Use `getPictureSize` instead. +- Fixed bugs. + +https://github.com/natario1/CameraView/compare/v1.3.2...v1.4.0 + ### v1.3.2 - Fixed a memory leak thanks to [@andrewmunn][andrewmunn] ([#92][92]) @@ -35,3 +54,5 @@ https://github.com/natario1/CameraView/compare/v1.2.3...v1.3.0 [92]: https://github.com/natario1/CameraView/pull/92 [93]: https://github.com/natario1/CameraView/pull/93 [94]: https://github.com/natario1/CameraView/pull/94 +[97]: https://github.com/natario1/CameraView/pull/97 +[99]: https://github.com/natario1/CameraView/pull/99 diff --git a/README.md b/README.md index 88f324b2..38265aaa 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ addressing most of the common issues and needs, and still leaving you with flexi See [CHANGELOG](https://github.com/natario1/CameraView/blob/master/CHANGELOG.md). ```groovy -compile 'com.otaliastudios:cameraview:1.3.2' +compile 'com.otaliastudios:cameraview:1.4.0' ```
diff --git a/cameraview/build.gradle b/cameraview/build.gradle index c94ee033..28c69ea6 100644 --- a/cameraview/build.gradle +++ b/cameraview/build.gradle @@ -3,7 +3,7 @@ apply plugin: 'com.github.dcendents.android-maven' apply plugin: 'com.jfrog.bintray' // Required by bintray -version = '1.3.2' +version = '1.4.0' group = 'com.otaliastudios' //region android dependencies