Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add JS Browser support #27

Open
buenaflor opened this issue Aug 8, 2022 · 8 comments
Open

feat: add JS Browser support #27

buenaflor opened this issue Aug 8, 2022 · 8 comments

Comments

@buenaflor
Copy link
Contributor

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

@rocketraman
Copy link

Can you post your prototype declarations here @buenaflor ?

@buenaflor
Copy link
Contributor Author

@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

@MinmoTech
Copy link

Hey!

Is there any chance this would get implemented at some point? :)

I would love to be able to integrate it into common code!

@romtsn
Copy link
Member

romtsn commented May 19, 2023

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

@alexwhb
Copy link

alexwhb commented Aug 30, 2023

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.

@ar-g
Copy link

ar-g commented Feb 22, 2024

Need chrome web-extension support

@buenaflor
Copy link
Contributor Author

See #227 (comment) for a quick implementation that you can do yourself

@sgammon
Copy link

sgammon commented Oct 8, 2024

@romtsn Seems like there's demand!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Backlog
Development

No branches or pull requests

8 participants