Redth / ZXing.Net.Mobile

Barcode Scanner for Xamarin.iOS, Xamarin.Android, UWP and Tizen
MIT License
1.07k stars 701 forks source link

Won't work with net7.0-ios or net7.0-android #1063

Open JimWilcox3 opened 1 year ago

JimWilcox3 commented 1 year ago

Are there any plans to support the replacement platform for Xamarin?

bdgza commented 1 year ago

I think you are looking for: https://github.com/Redth/ZXing.Net.Maui

michaldobrodenka commented 1 year ago

I think you are looking for: https://github.com/Redth/ZXing.Net.Maui

Is it possible to use it in non MAUI app?

sandhyagokul69 commented 11 months ago

We also need a replacement for Xamarin and are unable to move to .NET MAUI immediately. Will there be any support for .NET 7 Android and iOS going forward?

ThysBrits commented 8 months ago

We are also moving to .Net 8 and looking to use this, but the NuGet adds references to Xamarin.Android.Support.V4, which causes duplicate references to some other classes in Java, and breaks our build. Would love an update that supports .Net 7 and 8. I've tried adding ZXing.Net.Maui, but that then gives me an error: Xamarin.Android.Common.targets(1458,3): error XALNS7028: System.IO.FileNotFoundException: Could not load assembly 'Microsoft.Maui, Version=1.0.0.0 EDIT: After adding the <UseMaui>true</UseMaui> to my project file, the above error goes away, but seeing as my project is not a true MAUI project, but just a normal net8.0-android project, I cannot use this library. It would be really great if this package supports .Net7 and .Net8 on Android.

OllieStrevel commented 6 months ago

Hi, any updates about this?

ThysBrits commented 6 months ago

We took the plunge and redid our project as a MAUI MVVM project, using the ZXing.Net.MAUI Nuget, and that works. We didn't have the luxury of waiting for this to be looked at or resolved. We also use a library Camera.MAUI by hjam40.

OllieStrevel commented 6 months ago

I checked ZXing.Net.MAUI and it's ok, just i want to ask for MobileBarcodeScanner.Scan() method missing, is any way to use something equivalent from code behind?

ThysBrits commented 6 months ago

We use the Camera.MAUI to do the scanning of the barcode (taking the photo)