v2.2.0
🔊 Special Thanks!
Special thanks for @RGBvision and @ramosestudiante for your contributions that make this library better and better!
-
@RGBvision for report the issue #37:
Photo broken on Android 7.0
; -
@ramosestudiante for report the issue #41 and resolve with your Pull Request #42:
TypeError: Cannot read property 'forEach' of null
;
💥 Breaking Changes
Changed the functions and pros names for a better understanding and improve pattern.
The motivation for this changes:
- Pattern and group the functions that is related with a specific feature. For example:
faceROI
(face region of interest),face
(face detection),imageCapture
(image capture amount, interval, width...); - Prepare for news features:
computerVision
andfaceLandmarks
;
Some functions and props will be changed yet and the input type not changed.
Pattern functions and props names:
Old Function | Old Prop | New Function | New Prop | |
---|---|---|---|---|
- | initialLens | ➡️ | - | lens |
setSaveImageCaptured | saveImageCaptured | ➡️ | setImageCapture | imageCapture |
setNumberOfImages | numberOfImages | ➡️ | setImageCaptureAmount | imageCaptureAmount |
setTimeBetweenImages | timeBetweenImages | ➡️ | setImageCaptureInterval | imageCaptureInterval |
setOutputImageWidth | outputImageWidth | ➡️ | setImageCaptureWidth | imageCaptureWidth |
setOutputImageHeight | outputImageHeight | ➡️ | setImageCaptureHeight | imageCaptureHeight |
🐛 Bug Fix
-
Fixed the issue #37 reported by @RGBvision: changed the color encoding from "YUV" to "RGB" as default:
Photo broken on Android 7.0
; -
Fixed the issue #41 reported by @ramosestudiante:
TypeError: Cannot read property 'forEach' of null
;
✨ New Feature
- [Android] Add new method (
setImageCaptureColorEncoding
) and props (colorEncoding
) to change the color encoding the captured images. See more in theREADME.md
.
⚡ Improvements
- Add new decorator to save and execute native view on init;
📝 Update Readme
Add new function definitions:
Function | Parameters | Valid Values | Default Value |
---|---|---|---|
setImageCaptureColorEncoding | colorEncoding: string | "YUV" or "RGB" | "RGB" |
Add new props definitions:
Props | Input Type | Valid Values | Default Value |
---|---|---|---|
colorEncoding | string | "YUV" or "RGB" | "RGB" |
🔀 Accepted Pull Requests
- Special thanks to @ramosestudiante for your Pull Request #42 that fixed the issue #41;
⬆️ Upgrade Dependencies
- android-yoonit-camera update from
2.4.0
to2.5.2
; - ios-yoonit-camera use CocoaPods;