Hi All :wave: I’ve created a new barcode scanning ...
# feed
i
Hi All 👋 I’ve created a new barcode scanning library called KScan for Compose Multiplatform, now available as version 0.1.0-alpha01 ! Try it out if you can 😄
👍 9
👍🏻 1
s
Suggestion: You could add JVM desktop using OpenCV
👍 1
f
Using the camera with the JVM+CMP is kind of tricky but possible.
Also with WASM, it could be possible.
👍 1
i
Yeah, that would be amazing if we could use the camera for jvm/wasm. If anyone wants to contribute to this library, feel free to do so
f
I already do some POC/research. • The camera from the JVM and using like a CMP component is working, but I didn’t try to use OpenCV library. • The camera from the WASM, I found someone’s project who can inject js code into a WASM app and use it as a component, like a video. but I didn’t try to use a camera.
👀 1
@Ismail I will take a look at your project and see If I can do something
👍 2
@Ismail I can do much with your repo, your library sample is using moko.permissions in the commonMain, and it’s not compatible with the jvm app.
move “_moko.permissions”_ inside androidMain/iOSMain and then we can do something
i
the moko permisisons is used in the sample module, its not tied to the library
f
yes, my bad, the shared code of the sample is used by android and compose kmp : ios/jvmDesktop
👍 1
but it’s the same issue
i
ok cool, ill refactor the sample so desktop can work without the moko permissions request
f
the bad things here, it’s the desktop app on macos can’t run on sandbox as we can’t manage macOS permissions.
👀 1
@Ismail for the followup, can we continue to exchange on private message? thank!
i
@François yeah, thats fine