-
Notifications
You must be signed in to change notification settings - Fork 49
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
Use of library from commonMain in Kotlin Multiplatform Project #460
Use of library from commonMain in Kotlin Multiplatform Project #460
Comments
Yes this is expected right now. The services are built with the Kotlin/JVM plugin still. You should be able to access them from a JVM sourceSet. Most of the runtime itself is implemented with the multiplatform plugin which is why you can access it from Support for other targets is on our roadmap. The best thing you can do right now is to upvote the existing issues with the targets you would like to see supported. I agree that the ability to use the services in a |
Here is a list of all of our existing feature requests @joreilly , and these two are particular to KMP/js and KMP/native support. |
related to: smithy-lang/smithy-kotlin#437 Once that's done we should be able to update the service builds to publish as KMP projects (with only JVM target support for now) with all the KMP metadata. |
|
The fix for this issue has been pushed to main and should be included in the next release (likely this week). With that release, it should be possible to reference service clients and related types from common source sets (instead of requiring JVM). Note that the AWS SDK for Kotlin does yet not support non-JVM targets but they are on our roadmap as #228 and #229. |
I see that a 0.16.0 version was released but doesn't look like it's been published yet? |
We were having some issues syncing with maven central, it appears to be available now (e.g. dynamodb-jvm) NOTE: we accidentally cut this release without the |
Let me know if it's better to create another issue for this but getting following now when trying (in JVM code) to populate DynamoDb table (on M1 device)....seems related to aws/aws-sdk-java-v2#2942 ?
...actually, looks like this is already captured in #473 I'm assuming this probably isn't new behaviour with this version but just that I moved over to using M1 device since I was trying this before. |
That's correct @joreilly, this is a known issue. We're in the final stages of changes which will remove the CRT as a required dependency and enable the AWS SDK for Kotlin to run on Apple M1 so hopefully that issue won't be around much longer. |
Describe the issue
I can include following for example as
commonMain
dependency in shared module of a Kotlin Multiplatform project and access/use code from JVM and Android code but if I try to use fromcommonMain
source then only certain symbols appear to be resolvable (for example can accessStaticCredentialsProvider
but notDynamoDbClient
). Perhaps this is expected right now?Steps to Reproduce
per description
Current behavior
per description
AWS Kotlin SDK version used
0.9.4
Platform (JVM/JS/Native)
JVM/Android/Common
Operating System and version
macOS 11.4
The text was updated successfully, but these errors were encountered: