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 Kotlin/Native support #741

Closed
bpavuk opened this issue Apr 2, 2023 · 3 comments · Fixed by #744
Closed

Add Kotlin/Native support #741

bpavuk opened this issue Apr 2, 2023 · 3 comments · Fixed by #744

Comments

@bpavuk
Copy link

bpavuk commented Apr 2, 2023

No description provided.

@github-actions
Copy link

github-actions bot commented Apr 2, 2023

Welcome with your first issue

@InsanusMokrassar
Copy link
Owner

This library depends on MicroUtils. Today I tried to update this library to support native and got next error in compilation:

No matching variant of org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4 was found. The consumer was configured to find a usage of 'kotlin-api' of a library, preferably optimized for non-jvm, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'native', attribute 'org.jetbrains.kotlin.native.target' with value 'linux_arm64' but:
          - Variant 'commonMainMetadataElements' capability org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4 declares a usage of 'kotlin-api' of a library:
              - Incompatible because this component declares a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'common' 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 'linux_arm64')

So, I will try to investigate ways of fixes for this issue, but I am not pretty sure it is solvable

@InsanusMokrassar
Copy link
Owner

Looked deeper and found, that currently in native platforms there are no built-in API for the things like files. Anyway, you may an implementation of native platforms in microutils

@InsanusMokrassar InsanusMokrassar linked a pull request Apr 3, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants