diff --git a/docs/_posts/2018-12-20-changelog.md b/docs/_posts/2018-12-20-changelog.md index b5523ccc..a554b4f5 100644 --- a/docs/_posts/2018-12-20-changelog.md +++ b/docs/_posts/2018-12-20-changelog.md @@ -8,6 +8,11 @@ order: 3 New versions are released through GitHub, so the reference page is the [GitHub Releases](https://github.com/natario1/CameraView/releases) page. +### v2.0.0-beta06 (to be released) + +- Improvement: we now choose a video recording profile that is compatible with the chosen size. Should fix some video recording issues. ([#477][477]) +- **Breaking change**: some public classes have been moved to different packages. See [table here](../extra/v1-migration-guide.html#repackaging). ([#482][482]) + ### v2.0.0-beta05 - Fixed `FrameProcessor` freeze and release behavior, was broken ([#431][431]) @@ -45,4 +50,6 @@ This is the first beta release. For changes with respect to v1, please take a lo [471]: https://github.com/natario1/CameraView/pull/471 [431]: https://github.com/natario1/CameraView/pull/431 [403]: https://github.com/natario1/CameraView/pull/403 -[435]: https://github.com/natario1/CameraView/pull/435 \ No newline at end of file +[435]: https://github.com/natario1/CameraView/pull/435 +[477]: https://github.com/natario1/CameraView/pull/477 +[482]: https://github.com/natario1/CameraView/pull/482 \ No newline at end of file diff --git a/docs/_posts/2018-12-20-v1-migration-guide.md b/docs/_posts/2018-12-20-v1-migration-guide.md index 7d27c07a..80aa6bdf 100644 --- a/docs/_posts/2018-12-20-v1-migration-guide.md +++ b/docs/_posts/2018-12-20-v1-migration-guide.md @@ -165,6 +165,32 @@ The listener interface brings two breaking signature changes: The v2 version introduces a `cameraExperimental` XML flag that you can use to enable experimental features. Might be used in the future to speed up development. +### Repackaging + +Some public classes have been moved to different subpackages, to rearrange code in a more meaningful +way for the future. These changes are listed below: + +|Class name|Old package|New package| +|----------|-----------|-----------| +|`Audio`|`com.otaliastudios.cameraview`|`com.otaliastudios.cameraview.controls`| +|`Control`|`com.otaliastudios.cameraview`|`com.otaliastudios.cameraview.controls`| +|`Facing`|`com.otaliastudios.cameraview`|`com.otaliastudios.cameraview.controls`| +|`Flash`|`com.otaliastudios.cameraview`|`com.otaliastudios.cameraview.controls`| +|`Grid`|`com.otaliastudios.cameraview`|`com.otaliastudios.cameraview.controls`| +|`Hdr`|`com.otaliastudios.cameraview`|`com.otaliastudios.cameraview.controls`| +|`Mode`|`com.otaliastudios.cameraview`|`com.otaliastudios.cameraview.controls`| +|`Preview`|`com.otaliastudios.cameraview`|`com.otaliastudios.cameraview.controls`| +|`VideoCodec`|`com.otaliastudios.cameraview`|`com.otaliastudios.cameraview.controls`| +|`WhiteBalance`|`com.otaliastudios.cameraview`|`com.otaliastudios.cameraview.controls`| +|`Frame`|`com.otaliastudios.cameraview`|`com.otaliastudios.cameraview.frame`| +|`FrameProcessor`|`com.otaliastudios.cameraview`|`com.otaliastudios.cameraview.frame`| +|`Gesture`|`com.otaliastudios.cameraview`|`com.otaliastudios.cameraview.gesture`| +|`GestureAction`|`com.otaliastudios.cameraview`|`com.otaliastudios.cameraview.gesture`| +|`Size`|`com.otaliastudios.cameraview`|`com.otaliastudios.cameraview.size`| +|`SizeSelector`|`com.otaliastudios.cameraview`|`com.otaliastudios.cameraview.size`| +|`SizeSelectors`|`com.otaliastudios.cameraview`|`com.otaliastudios.cameraview.size`| +|`AspectRatio`|`com.otaliastudios.cameraview`|`com.otaliastudios.cameraview.size`| + ### Other improvements & changes - Added `@Nullable` and `@NonNull` annotations pretty much everywhere. This might **break** your Kotlin build.