ComposeCharts icon indicating copy to clipboard operation
ComposeCharts copied to clipboard

Add support for Js target

Open vidicunt opened this issue 1 month ago • 5 comments

vidicunt avatar Nov 30 '25 16:11 vidicunt

Hi @vidicunt, thank you, i appreciate your interest for making PR and contribute. I have some questions:

  1. we are currently supporting wasm js, what's the diffrence between wasmJs and Js target? i mean what's the use of it for this project and what's the advantages of that? (I tested the output of js target and searched in google, but i did not get the diffrence between output of wasmJs and Js)

  2. is there any reason why you updated dependencies or minSdk of android app under the 'Add support for Js target' title?

ehsannarmani avatar Nov 30 '25 18:11 ehsannarmani

Hello!

  1. WasmJs is not supported on iOS versions < 18.2, or other legacy browsers not supporting wasm-based GC, thus the Js variant is needed. There is a gradle task ./gradlew composeCompatibilityBrowserDistribution which compiles for both Js and WasmJs.
  2. No reason. Another PR for updating dependencies may be created.

vidicunt avatar Nov 30 '25 19:11 vidicunt

Ok, thank you for explanation. Then i will be greatful if you rollback version updates and fix commit history.

ehsannarmani avatar Nov 30 '25 19:11 ehsannarmani

Done. Mind that I updated the compose version, since previous compose versions don't work properly with the Js target.

vidicunt avatar Nov 30 '25 19:11 vidicunt

Thanks. Could you please clean up the PR so the final commit history contains only the valid changes (no revert commits)? After updating, please push with --force to update this PR.

ehsannarmani avatar Dec 01 '25 09:12 ehsannarmani

Done

vidicunt avatar Dec 01 '25 18:12 vidicunt

Thanks

ehsannarmani avatar Dec 01 '25 19:12 ehsannarmani