Skip to content

Conversation

@nift4
Copy link

@nift4 nift4 commented Aug 7, 2024

The qrcode module used deprecated APIs like android.hardware.Camera and Play Services Vision API. Replace these with AndroidX CameraX and open source zxing-cpp. zxing-cpp works on all devices, no matter if they have Play Services or not. I have tested this on my headset and can confirm QR scanning works fine.

@nift4
Copy link
Author

nift4 commented Aug 7, 2024

Forgot to say, zxing-cpp is licensed under Apache 2.0 license so it is compatible with this project's license.

The qrcode module used deprecated APIs like android.hardware.Camera and Play Services Vision API. Replace these with AndroidX CameraX and open source zxing-cpp. zxing-cpp works on all devices, no matter if they have Play Services or not.
@arilow
Copy link

arilow commented Aug 27, 2024

Thanks @nift4 for your pull request!

As you said, the qrcode module uses deprecated APIs and they should be replaced. Although your changes seem reasonable, our plan is to migrate the qrcode module to use ML Kit as it is recommended in the com.google.android.gms.vision guide.

In case you'd like to propose the required changes for the migration to ML Kit, your help will be very much appreciated.
I'm leaving this PR open to update it once the qrcode module is updated.

Thanks!

@nift4
Copy link
Author

nift4 commented Aug 27, 2024

Hi, is there no chance to merge this PR with zxing-cpp? It is open source and does not increase APK size as much as MLKit does. Thanks, Nick

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants