Skip to content

Conversation

buenaflor
Copy link
Contributor

@buenaflor buenaflor commented Jul 17, 2025

Note: this should not be merged before we fix craft to process the new targets

📜 Description

Users have bad devex if they use targets that we don't support.
Currently the SDK won't compile and the user would have to shift their sourceSet architecture which is unrealistic.

💡 Motivation and Context

Adds no-op support for js, wasm-js, linux, mingw so users can freely use Sentry in the official supported targets and no-op targets.

Closes #328
Closes #327
Closes #329

@buenaflor buenaflor changed the title [DRAFT] Add stubs/no-op support for JS target [DRAFT] Add stubs/no-op support for js and wasmJs target Jul 17, 2025
Base automatically changed from deps/upgrade-kotlin to main July 18, 2025 10:50
@buenaflor buenaflor changed the title [DRAFT] Add stubs/no-op support for js and wasmJs target [DRAFT] Add stubs/no-op support for unsupported targets Jul 18, 2025
@buenaflor buenaflor changed the title [DRAFT] Add stubs/no-op support for unsupported targets Add stubs/no-op support for unsupported targets Jul 21, 2025
@buenaflor buenaflor marked this pull request as ready for review July 21, 2025 12:56
@buenaflor buenaflor requested a review from romtsn as a code owner July 21, 2025 12:56
}

private fun KotlinMultiplatformExtension.addNoOpTargets() {
js(IR) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah I see, it's too old already

@buenaflor buenaflor merged commit 4984d35 into main Jul 22, 2025
8 checks passed
@buenaflor buenaflor deleted the cursor/add-js-browser-target-for-sentry-kmp-235a branch July 22, 2025 09:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement no-op implementation for Linux Implement no-op implementation for WASM Implement no-op implementation for JS

3 participants