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 wasmJS support | Update Kotlin and Compose #43

Merged
merged 1 commit into from
Mar 25, 2024
Merged

Add wasmJS support | Update Kotlin and Compose #43

merged 1 commit into from
Mar 25, 2024

Conversation

Skaldebane
Copy link
Contributor

Hi! This PR adds wasmJS support, along with updating dependencies (mainly Kotlin -> 1.9.20 and Compose -> 1.6.1).

Also adds a wasmJS source to sample-multiplatform, and replaces removed Window with the new CanvasBasedWindow in the JS sample.

This has been tested on wasmJS (along with JS and JVM) and it works without issues.

Note: The iOS uikit configuration block in sample-multiplatform has been probably deprecated (removed) in 1.9.20? I can't find much info aside from this message by Dima Adeev on Slack.
I'm not sure how that affects the iOS sample as I don't have a Mac, but I just out-commented that code for now.

Note 2: There are a few warnings regarding not using the new default hierarchy template introduced in Kotlin 1.9.20 (e.g. iOS() function is deprecated), but I'm not sure how to go about these (nor can I test any changes on the iOS side), so I left them as they are.

@Skaldebane
Copy link
Contributor Author

Closes #39.

@DevNatan DevNatan added enhancement New feature or request platform: browser Issue that contains "js browser" as platform target labels Mar 24, 2024
@DevSrSouza
Copy link
Collaborator

Awesome!

@DevSrSouza
Copy link
Collaborator

About the multiplatform sample, yes, this DSL was removed, but no worries, I will bake a Xcodegen file.

@DevSrSouza DevSrSouza merged commit 66a0742 into adrielcafe:main Mar 25, 2024
@DevSrSouza
Copy link
Collaborator

No regressions on the iOS side.

Screen.Recording.2024-03-24.at.22.03.42.mov

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request platform: browser Issue that contains "js browser" as platform target
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants