Skip to content
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

Merged
merged 3 commits into from
Apr 30, 2024

Conversation

devinbileck
Copy link
Member

@devinbileck devinbileck commented Mar 1, 2024

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).

Copy link
Contributor

@alejandrogarcia83 alejandrogarcia83 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@devinbileck
Copy link
Member Author

@alejandrogarcia83 I am not sure why that failed. It does not provide much detail.
I re-ran it on my fork and it passed: https://github.com/devinbileck/bisq/actions/runs/8447335253
Would you be able to re-run it, since I dont seem to have the ability to, in order to see if it was just a transient failure?

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.
@alejandrogarcia83 alejandrogarcia83 added this to the v1.9.16 milestone Apr 9, 2024
Copy link
Contributor

@alvasw alvasw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK

Copy link
Contributor

@alejandrogarcia83 alejandrogarcia83 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK

@alejandrogarcia83 alejandrogarcia83 merged commit add2f98 into bisq-network:master Apr 30, 2024
3 checks passed
@devinbileck devinbileck deleted the scan-qr-code branch May 31, 2024 05:57
devinbileck added a commit to devinbileck/bisq that referenced this pull request Jun 23, 2024
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.
alejandrogarcia83 pushed a commit that referenced this pull request Jun 24, 2024
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.
alejandrogarcia83 pushed a commit that referenced this pull request Jun 24, 2024
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants