Closed jperedadnr closed 2 years ago
@molbertz As a follow-up, I've created a PR for this issue: #327, in the very same way we did for the barcode service.
If you have the time, it would be great if you could test it/review it. Thanks!
Just looked at the changes. Seems a bit more complex than the barcode-scan. I can just check out the branch from your personal repo, yes?
Sure, you can either create a patch from my commit and apply it to your repo, or simply clone my branch, indeed.
I cloned your repo and compiled barcode-scan and pictures. I'm using the HelloGluon sample to test. So far so good. Unfortunately I just lost the VPN to our macOS machine. I don't know how long that is going to take.
Anyway, I noticed something I missed with the JavaDoc for BarcodeScanService.java
.
* <pre>
* {@code BarcodeScanService.create().ifPresent(service -> {
* service.resultProperty().addListener((obs, ov, nv) ->
* System.out.printf("Scanned result: %s", nv.getResult()));
* barcodeScanService.asyncScan();
* });}</pre>
barcodeScanService.asyncScan()
should be service.asyncScan()
Okay, no problem. Good catch, I've just fixed it.
Taking a picture works on iPhone 13 Pro. Selecting a picture also works.
EDIT: I didn't try the ShareService line from the example though.
Cool, thanks for testing! Share service should work, it is not affected by the nested event lock.
No problem. Is there already a release planned for 4.0.16 btw?
You can review the PR if you want (even just approve it and comment that you tested it on iPhone 13). We'll do a release with these changes soon.
Okay, I'll have a look at that.
Follow-up of #322