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

Dependency in KMP #491

Open
morand1 opened this issue Jun 18, 2024 · 3 comments
Open

Dependency in KMP #491

morand1 opened this issue Jun 18, 2024 · 3 comments
Labels
blocked This issue can only be resolved by resolving an underlying issue iOS iOS related issues

Comments

@morand1
Copy link

morand1 commented Jun 18, 2024

Hi, I'm trying to use library in my Kotlin Multiplatform project and as I understand I should use id.walt:waltid-sdjwt-jvm module and repository: maven("https://maven.waltid.dev/") is that correct? Because samples in README, sample project etc. are not consistent and it is hard to understand it. Anyway I'm getting error while trying to use this dependency.

@mikeplotean
Copy link
Contributor

hi @morand1, that's correct, the repository to use is https://maven.waltid.dev. If you intend to use the dependency for the jvm sourceSet then it should be specified as you did (id.walt:waltid-sdjwt-jvm:<version>, where version = 0.3.1, for example). However, in a kmp project you can specify it in the common sourceSet. In this case you don't need the plaform suffix - id.walt:waltid-sdjwt:0.3.1.
Could you share the error you're getting?

@morand1
Copy link
Author

morand1 commented Jun 19, 2024

@mikeplotean I tried with maven url: https://maven.waltid.dev/releases and it seems to be working now in android project but in common I'm getting:

Execution failed for task ':composeApp:transformNativeMainCInteropDependenciesMetadataForIde'.
> Could not resolve all files for configuration ':composeApp:iosArm64CompilationDependenciesMetadata'.
   > Could not resolve id.walt:waltid-sdjwt:0.3.1.
     Required by:
         project :composeApp
      > No matching variant of id.walt:waltid-sdjwt:0.3.1 was found. The consumer was configured to find a library for use during 'kotlin-metadata', preferably optimized for non-jvm, as well as attribute 'org.jetbrains.kotlin.native.target' with value 'ios_arm64', attribute 'org.jetbrains.kotlin.platform.type' with value 'native' but:
          - Variant 'jsApiElements-published' declares a library for use during 'kotlin-api':
              - Incompatible because this component declares a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'js' and the consumer needed a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'native'
              - Other compatible attributes:
                  - Doesn't say anything about its target Java environment (preferred optimized for non-jvm)
                  - Doesn't say anything about org.jetbrains.kotlin.native.target (required 'ios_arm64')
                  .......

@waltkb
Copy link
Contributor

waltkb commented Jun 25, 2024

There currently is no iosArm64 version. We are working towards this, but this will still take a couple of weeks.

@waltkb waltkb added blocked This issue can only be resolved by resolving an underlying issue iOS iOS related issues labels Jun 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked This issue can only be resolved by resolving an underlying issue iOS iOS related issues
Projects
None yet
Development

No branches or pull requests

3 participants