ably/ably-java

Update README for kotlin/ kotlin multiplatform usage

sacOO7 opened this issue · 7 comments

sacOO7 commented
  • Current ably-java SDK supports kotlin but not mentioned anywhere in the doc.
  • About kotlin multiplatform, ably-java supports desktop and android apps, for ios/ web it needs interops with ably-cocoa and ably-js - There should be a separate section in the README mentioning the same.
  • Link to internal discussion -> https://ably-real-time.slack.com/archives/C030C5YLY/p1707222360250929

┆Issue is synchronized with this Jira Task by Unito

➤ Automation for Jira commented:

The link to the corresponding Jira issue is https://ably.atlassian.net/browse/SDK-4079

Hi patiently waiting for this for multiplatform. Any idea or timeline by when will this be supported?

sacOO7 commented

Hi @LaatonWalaBhoot, currently you can use ably-java for KMM desktop/android.
For ios, you need to use https://kotlinlang.org/docs/native-objc-interop.html along with ably-cocoa sdk.

@sacOO7 Is there any documentation for this to get started?
Any samples?

sacOO7 commented

We will add it soon : )
Meanwhile if your requirement is just desktop and android, you can get started with ably-java.

@sacOO7 Waiting for it. My requirements are iOS and Android.
Also, I noticed that the SDK does not have first-class coroutines support.
Is that something intentional or will be added in the future?

sacOO7 commented

@LaatonWalaBhoot It's not intentional as such. We always strive to develop SDK's that can cover multiple platforms. That said, as per usecase, this SDK can be used in all jvm based platforms including android. As mentioned here, as adoption of KMM increases, we will try adding necessary features.