Repository navigation
CommunityToolkit.Maui.Camera: Xamarin.AndroidX.Camera dependencies do not work with 1.6.1 assemblies #3306
jschneiderCDS
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I'm using the CameraView for photo capture on Android. My project also relies on another nuget package https://www.nuget.org/packages/Docutain.SDK.MAUI/3.0.0. Both reference the following packages:
However, the Docutain package requires version 1.6.1 or higher and when using the 1.6.1 versions of these dependencies, the CameraView does not properly handle zoom factors. Min and Max ZoomFactors are always reported as 1, essentially disabling the ability to zoom. When referencing the 1.4.2.3 version of the dependencies, the CameraView works as expected and zoom factors for the cameras are reported correctly.
The failure is reproduced in both Debug and Release builds and adding TrimmerRootAssembly entries for the CameraX assemblies does not resolve the issue. It seems when referencing 1.6.1 the values for zoom factor are wrong because they're read before the camera is bound. In the current state it seems CommunityToolkit.Maui.Camera in not compatible with any package that requires 1.6.1 versions of the CameraX assemblies.
All reactions