Open buenaflor opened 2 years ago
Can you post your prototype declarations here @buenaflor ?
@rocketraman maybe you can find relevant things here: https://github.com/getsentry/sentry-kotlin-multiplatform/tree/feat/add-js-support/sentry-kotlin-multiplatform/src/jsMain/kotlin/io/sentry/kotlin/multiplatform
Not sure if it works currently but it's something I played around with a couple months ago
Hey!
Is there any chance this would get implemented at some point? :)
I would love to be able to integrate it into common code!
@MinmoTech definitely, if there's a demand from the community!
I would love to see this get implemented as well. I have iOS, Android, and WatchOS targets with an app I'm building and I'm working on a JS target, but this is currently the only dependency in my stack that doesn't have JS browser support.
Need chrome web-extension support
See https://github.com/getsentry/sentry-kotlin-multiplatform/issues/227#issuecomment-2310840303 for a quick implementation that you can do yourself
@romtsn Seems like there's demand!
It's possible to install NPM packages via
implementation(npm(...))
and create bindings through@JsModule(...)
annotationIdeally we install
@sentry/browser
and wrap our KMP sdk around it.I have played around with it and was able to do basic things like
init
andcaptureMessage