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

DID SDK not supported in common module #911

Open
antoniomp17 opened this issue Jan 28, 2025 · 3 comments
Open

DID SDK not supported in common module #911

antoniomp17 opened this issue Jan 28, 2025 · 3 comments
Labels
bug Something isn't working

Comments

@antoniomp17
Copy link

antoniomp17 commented Jan 28, 2025

Describe the bug

When I try to add the dependency in the common module of my KMP project. It fails with the next message:

Execution failed for task ':composeApp:transformIosMainCInteropDependenciesMetadataForIde'.

Could not resolve all files for configuration ':composeApp:iosArm64CompilationDependenciesMetadata'.
Could not resolve id.walt.did:waltid-did:0.10.0.
Required by:
project :composeApp
> No matching variant of id.walt.did:waltid-did:0.10.0 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', preferably optimized for non-jvm:
- 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'
...

I added the maven repository ""https://maven.waltid.dev/releases"" correctly.
When i put the implementation only in the androidModule it works.

I don't know if i'm missing something, if is not supported yet or if is not planned to be supported for ios_arm64.

Thank you in advance.

@antoniomp17 antoniomp17 added the bug Something isn't working label Jan 28, 2025
@alegomes
Copy link
Contributor

alegomes commented Feb 3, 2025

Hi @antoniomp17

I'm not sure if I understood the full context.

You said:

When i put the implementation only in the androidModule it works.

  1. What do you mean by "implementation"? Are you talking about the dependency reference?
  2. Where else were you putting it?

thanks
Ale

@antoniomp17
Copy link
Author

Hello @alegomes,

1. What do you mean by "implementation"? Are you talking about the dependency reference?
Yes, I'm refeering to dependency. Sorry.

2. Where else were you putting it?
I was referring to the fact that it cannot be used in the common module of a kmp project. That is, I cannot implement the dependency in such a way that both the Android and iOS modules use your library. In iOS, I get the error mentioned above. So I can simply use the dependency in the android module.

I thought that it could be used in kmp projects since it is mentioned that this library is multiplatform.

Thank you,
Antonio.

@alegomes
Copy link
Contributor

Thanks, Antonio. I'm on it.

It seems we are having some issues with iOS building. I'll let you now as soon as we fix it.

[]s
Ale

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants