sentry-kotlin-multiplatform icon indicating copy to clipboard operation
sentry-kotlin-multiplatform copied to clipboard

feat: add JS Browser support

Open buenaflor opened this issue 3 years ago • 9 comments

It's possible to install NPM packages via implementation(npm(...)) and create bindings through @JsModule(...) annotation

Ideally 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 and captureMessage

buenaflor avatar Aug 08 '22 10:08 buenaflor

Can you post your prototype declarations here @buenaflor ?

rocketraman avatar Mar 22 '23 14:03 rocketraman

@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

buenaflor avatar Mar 22 '23 15:03 buenaflor

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 avatar May 16 '23 13:05 MinmoTech

@MinmoTech definitely, if there's a demand from the community!

romtsn avatar May 19 '23 13:05 romtsn

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.

alexwhb avatar Aug 30 '23 16:08 alexwhb

Need chrome web-extension support

ar-g avatar Feb 22 '24 17:02 ar-g

See https://github.com/getsentry/sentry-kotlin-multiplatform/issues/227#issuecomment-2310840303 for a quick implementation that you can do yourself

buenaflor avatar Sep 10 '24 11:09 buenaflor

@romtsn Seems like there's demand!

sgammon avatar Oct 08 '24 19:10 sgammon

Would love to see this and #227 happen!

skaldebane avatar Dec 03 '24 23:12 skaldebane