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

Add additional target platforms #13

Merged
merged 4 commits into from
Sep 3, 2024
Merged

Conversation

darronschall
Copy link
Contributor

@darronschall darronschall commented Sep 3, 2024

Closes #8

Since our runtime depends on PBandK and Ktor Client, without any specific platform-handling code on its own, we can declare support for (and publish the library for) all possible targets at the intersection of those two dependencies and things should just work downstream.

Ktor Targets: https://github.com/ktorio/ktor/blob/main/buildSrc/src/main/kotlin/NativeUtils.kt

PBandK Runtime Targets: https://github.com/streem/pbandk/blob/master/runtime/build.gradle.kts

Note that ktor-client-core 2.3.12 does not support wasmJs.

@darronschall darronschall added this to the 0.4.0 milestone Sep 3, 2024
Since our runtime depends on [PBandK](https://raw.githubusercontent.com/streem/pbandk) and [Ktor Client](https://github.com/ktorio/ktor), without any specific platform-handling code on its own, we can declare support for (and publish the library for) all possible targets at the intersection of those two dependencies and things should just work downstream.

Ktor Targets: https://github.com/ktorio/ktor/blob/main/buildSrc/src/main/kotlin/NativeUtils.kt

PBandK Runtime Targets: https://github.com/streem/pbandk/blob/master/runtime/build.gradle.kts

Note that ktor-client-core 2.3.12 does not support `wasmJs`.
`Name contains illegal chars that cannot appear in JavaScript identifier.`

I thought about using the `@JsName` annotation here to just rename the test method in JavaScript, but that potentially duplicated the test name. Easier to just replace spaced with underscores, and then remove the backtick escapes.
@darronschall darronschall force-pushed the add-additional-targets branch from 6a39709 to c2314ef Compare September 3, 2024 17:11
Copy link

@manlycode manlycode left a comment

Choose a reason for hiding this comment

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

👍

@darronschall darronschall merged commit 77a606b into main Sep 3, 2024
2 checks passed
@darronschall darronschall deleted the add-additional-targets branch September 3, 2024 17:46
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.

Feature Request: Add jvm target support
2 participants