-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Restore QR code scanner feature for mobile notification pairing #7050
Restore QR code scanner feature for mobile notification pairing #7050
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NACK
The CI build fails on macOS (see https://github.com/bisq-network/bisq/actions/runs/8447335400/attempts/1#summary-23137520876),
@alejandrogarcia83 I am not sure why that failed. It does not provide much detail. |
This restores the functionality that was removed in b5beea5. However, this implementation utilizes the JavaCV library rather than the webcam-capture library as discussed in bisq-network#4940. As a result, this should now provide macOS support.
This should hopefully resolve images failing to load from resources on Windows due to problems with imread encountering "can't open/read file: check file path/integrity".
When attempting to close the frame grabber from a separate thread, the application would crash due to a SIGSEGV.
93d73b1
to
5f3f692
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK
With the introduction of the javacv library when re-adding the QR code scanner feature for mobile notification pairing in bisq-network#7050, the Bisq binary increased to nearly 1 GB from its previous size of around 300 MB. When including the javacv-platform dependency, it pulls in binaries for all platforms. But it is possible to limit this by utilizing the gradle-javacpp platform plugin which by default will pull in binaries only for the current platform. Reference: https://github.com/bytedeco/gradle-javacpp#the-platform-plugin With this change, the included libs went from ~980 MB down to ~366 MB.
With the introduction of the javacv library when re-adding the QR code scanner feature for mobile notification pairing in #7050, the Bisq binary increased to nearly 1 GB from its previous size of around 300 MB. When including the javacv-platform dependency, it pulls in binaries for all platforms. But it is possible to limit this by utilizing the gradle-javacpp platform plugin which by default will pull in binaries only for the current platform. Reference: https://github.com/bytedeco/gradle-javacpp#the-platform-plugin With this change, the included libs went from ~980 MB down to ~366 MB.
With the introduction of the javacv library when re-adding the QR code scanner feature for mobile notification pairing in #7050, the Bisq binary increased to nearly 1 GB from its previous size of around 300 MB. When including the javacv-platform dependency, it pulls in binaries for all platforms. But it is possible to limit this by utilizing the gradle-javacpp platform plugin which by default will pull in binaries only for the current platform. Reference: https://github.com/bytedeco/gradle-javacpp#the-platform-plugin With this change, the included libs went from ~980 MB down to ~366 MB.
This restores the functionality that was removed in b5beea5. This implementation utilizes the JavaCV library rather than the webcam-capture library for reasons discussed in #4940.
I have tested this on both Linux (Ubuntu 23.10) and macOS (Sonoma 14.4).