voyager icon indicating copy to clipboard operation
voyager copied to clipboard

Support for kotlin/wasm

Open sunildhiman90 opened this issue 1 year ago • 5 comments

Hi ,

i was trying to implement it in compose multiplatform project with kotlin/wasm support, But it does not work. I got this error:

Could not determine the dependencies of task ':shared:wasmPackageJson'.
> Could not resolve all dependencies for configuration ':shared:wasmNpm'.
   > Could not resolve cafe.adriel.voyager:voyager-navigator:1.0.0-rc06.
     Required by:
         project :shared
      > No matching variant of cafe.adriel.voyager:voyager-navigator:1.0.0-rc06 was found. The consumer was configured to find a library for use during 'kotlin-runtime', preferably optimized for non-jvm, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'wasm' but:
          - Variant 'debugApiElements-published' capability cafe.adriel.voyager:voyager-navigator:1.0.0-rc06 declares a library:
              - Incompatible because this component declares a component for use during compile-time, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' and the consumer needed a component for use during 'kotlin-runtime', as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'wasm'

Are we planing to add support for koltin/wasm any recently?

Thanks

sunildhiman90 avatar Jun 18 '23 08:06 sunildhiman90

There is a little sample using WASM here. But the repo is not updated with latest Kotlin WASM release.

programadorthi avatar Jun 23 '23 22:06 programadorthi

@sunildhiman90 I had the same error, were you able to use it with Kotlin\Wasm?

Irineu333 avatar Oct 21 '23 19:10 Irineu333

Hi @Irineu333, i postponed work on it. So i didnt tried it again actually. If i will try it, i will let u know.

sunildhiman90 avatar Nov 11 '23 17:11 sunildhiman90

There is a little sample using WASM here. But the repo is not updated with latest Kotlin WASM release.

Yes, in my case I wanted the target to be Kotlin/Wasm. But for now, I'll continue with Kotlin/JS, as Kotlin/Wasm is still very unstable.

Irineu333 avatar Nov 11 '23 20:11 Irineu333

Hi, curious of any plans still to support Wasm target now that it's reached alpha.

joreilly avatar Dec 10 '23 09:12 joreilly

Released on https://github.com/adrielcafe/voyager/releases/tag/1.1.0-alpha03

DevSrSouza avatar Feb 23 '24 13:02 DevSrSouza