Uh oh!
There was an error while loading. Please reload this page.
feat(android): implement QR code scanner - #1124
Conversation
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
dffdf92 to
370b72cCompare| if (project.ext.react.enableCamera) { | ||
| main.java.srcDirs += "src/camera/java" | ||
| } else { | ||
| main.java.srcDirs += "src/no-camera/java" | ||
| } |
There was a problem hiding this comment.
this is pretty cool tbh :D
Lorenzo Sciandra (kelset)
left a comment
There was a problem hiding this comment.
managed to test it via the virtual camera in Android emulator, and overall it works well 👍
one small thing, that probably needs to be tested separately for both iOS and Android is to handle gracefully when the url is not a metro bundler one. In my first test I generated a random url and the app just crashes. Would be nice to error out, maybe with a "hey this url is not a valid metro instance, try again" or something.
But it's probably something that both iOS and Android need to be coded for, so it can be done as a follow up PR
370b72c to
5357a81CompareTommy Nguyen (tido64)
commented
Oct 5, 2022
|
Description
Implements the QR code scanner feature that has existed on iOS for some time.
Resolves#1146.
Platforms affected
Test plan
CameraX + ML Kit adds about 4-5 MBs to the installed app size. Make sure that if single app mode is enabled, we don't get that size bump.